The meaning of braces in various Schemes John Cowan (05 Sep 2012 06:24 UTC)
Re: The meaning of braces in various Schemes David A. Wheeler (05 Sep 2012 11:50 UTC)
Re: The meaning of braces in various Schemes John Cowan (05 Sep 2012 17:20 UTC)
Do we NEED a marker at all? David A. Wheeler (05 Sep 2012 13:25 UTC)
Re: Do we NEED a marker at all? Jens Axel Søgaard (05 Sep 2012 20:42 UTC)
Re: Do we NEED a marker at all? Shiro Kawai (06 Sep 2012 04:27 UTC)
Re: Do we NEED a marker at all? Alan Manuel Gloria (06 Sep 2012 12:36 UTC)
Re: Do we NEED a marker at all? David A. Wheeler (06 Sep 2012 13:07 UTC)
Re: Do we NEED a marker at all? John Cowan (06 Sep 2012 17:09 UTC)
Re: The meaning of braces in various Schemes Donovan Kolbly (07 Sep 2012 02:12 UTC)
Re: The meaning of braces in various Schemes David A. Wheeler (07 Sep 2012 03:41 UTC)

Re: Do we NEED a marker at all? Jens Axel Søgaard 05 Sep 2012 20:34 UTC

2012/9/5 David A. Wheeler <xxxxxx@dwheeler.com>:
> John Cowan:
>> http://trac.sacrideo.us/wg/wiki/BracketsBraces shows the meaning
>> of square brackets and curly braces in my Scheme test suite, which
>> currently includes 45 implementations.  Only Chibi and RScheme currently
>> do something special with braces; the other implementations treat them
>> as either synonyms for parentheses, lexical syntax errors, or identifier
>> characters.

In Racket read-syntax will store the type of parenthesis used in the
syntax object.
This implies that macros can use this information during expansion.

See:

http://docs.racket-lang.org/reference/reader.html?q=paren#(idx._(gentag._30._(lib._scribblings/reference/reference..scrbl)))

Combining this with #%app one can make (foo bar) mean one thing and {foo bar}
mean another thing without messing with the reader.

A random example of this:
   https://github.com/soegaard/this-and-that/blob/master/brevity/brevity.rkt

But search the Racket mailing list archive for other examples.

/Jens Axel