This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 13: [brackets] as (parens)

2011-01-24 08:19:36
WG1 - Reader Syntax
alexshinn
major
alexshinn
wontfix
source
closed
2010-02-23 16:31:16
defect

R6RS allows [] brackets as identical to parenthesis, with the condition that they must balance. Do we accept this extension, propose some other use for brackets, or leave them unspecified?

MzScheme, Gauche, Gambit, Chicken, Bigloo, SISC, Chez, SSCM, VSCM, and the R6RS Schemes support [+ 1 2] => 3.

MIT, Scheme48/scsh, Guile, Kawa, SCM, Scheme 9, Scheme 7, SXM, Chibi don't. Some throw lexical-syntax errors when they read the [, others complain that [+ is not a defined symbol.

I recommend that brackets mean the same as parens. I recommend against Interlisp-style closing of )s with ] and vice versa.

milestone

ick. but probably livable. Why can't people just use real editors?

Used to hate the idea, and now I really like them. YMMV.

resolutionfixed
statusnewclosed

The WG voted to reject this feature.

resolutionfixed
statusclosedreopened
resolutionwontfix
statusreopenedclosed