[r6rs-discuss] [Formal] please make square brackets more useful

AndrevanTonder andre at het.brown.edu
Wed Jun 20 07:44:16 EDT 2007


On Tue, 19 Jun 2007, William D Clinger wrote, quoting Jonathan Reese:

> Define
> [a b c] to be a special reader syntax for the four-element list
> (*square-bracketed* a b c)

Let me just point out that, unless done very carefully, this may cause
very puzzling ambiguities.  For example, if COND is naively written to allow 
either square or round brackets, the meaning of the expression

   (cond [#f])

would depend on the order in which the COND macro matches for square/round 
brackets.

Andre



More information about the r6rs-discuss mailing list