On Fri, Dec 4, 2009 at 12:46 PM, Eduardo Cavazos <[email protected]> wrote:
> I'm not a fan of the R6RS change to make brackets work like parenthesis.
> On the other hand, I respect that alot of folks like to use them this
> way. It would be nice if they were "programmable". One approach is to
> have the reader expand '[...]' into:
>
> (brackets ...)
>
> and '{...}' into:
>
> (braces ...)
>
> or something along those lines. 'bracket' and 'braces' would be macros
> that should be imported into the library accordingly. I.e. the R6RS
> standard libraries would export a 'brackets' macro that simply expands
> into '(...)'.
A while back, I ended up implementing this for Chibi Scheme:
http://groups.google.com/group/chibi-scheme/browse_frm/thread/15cbc4619d348d8c#
Ed