On Wed, Sep 09, 2009 at 12:49:22PM -0400, John Cowan wrote:
> > > That is, should |foo|n|baz| be parsed as three symbols,
> > > foo, n, and baz, or a single symbol foonbaz?
> > > CL uses the latter.  Gauche uses the former.  
> > 
> > Chicken also uses the former.
> 
> Are you sure?  I just asked csi to evaluate '(foo|n|baz), and it replied
> (|foo\|n\|bar|), a list of length 1.

I guess if you start a symbol with anything other than a pipe symbol, the
pipe loses its special meaning and is taken to be just another character
in the symbol's name.  Note that you asked it for 'foo|n|baz and I asked
it for '|foo|n|baz|.

I checked with Gauche; it doesn't do this the same way.  It appears to
parse 'foo|n|baz as  'foo,  n,  baz

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: pgpptU76c8B3b.pgp
Description: PGP signature

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to