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

From: AndrevanTonder <andre>
Date: Wed, 20 Jun 2007 07:44:16 -0400 (EDT)

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
Received on Wed Jun 20 2007 - 07:44:16 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC