[plt-scheme] Specifics on how display works..

From: John Clements (clements at brinckerhoff.org)
Date: Sun Apr 24 07:18:25 EDT 2005

On Apr 24, 2005, at 1:38 AM, Jim Witte wrote:

> Hi,
>
> The following display statement will run, display a complicated list 
> like I want (a representation of an FSM in a program I'm writing"
>
> (display '(["Stop at a B" "AB" 2]
>            [('first [('A 'first 'right)
>                      ('B 'second 'right)])
>             ('second [('A ("Found a B"))
>                       ('B ("Found a B"))])]) )
>
> but this will not, treating part of it as a procedure application, not 
> a list:
>
> (display '[["Stop at a B" "ABC" 2]
>            [('first [('A 'first 'right)
>                      ('B 'second 'right)])
>             ('second [('A ("Found a B"))
>                       ('B ("Found a B"))])]] )
>
>   I thought that the '(; and '[' characters were identical as 
> list-delimiters as far as RSR5 was concerned?  Or is '['  a way to do 
> an application, even within a list structure (similar to an unquote in 
> a backquoted list?)

Please be more specific:  what output do you observe in the evaluation 
of these two expressions?  In DrScheme, for me, these two produce 
identical outputs (well, the first one contains the string "AB" and the 
second one contains the string "ABC").

John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1294 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20050424/8687e682/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2430 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20050424/8687e682/attachment.p7s>

Posted on the users mailing list.