Opened 8 years ago

Closed 7 years ago

#13 closed defect (wontfix)

[brackets] as (parens)

Reported by: alexshinn Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - Reader Syntax Keywords:


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?

Change History (6)

comment:1 Changed 7 years ago by cowan

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.

comment:2 Changed 7 years ago by kumoyuki

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

comment:3 Changed 7 years ago by arcfide

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

comment:4 Changed 7 years ago by cowan

  • Resolution set to fixed
  • Status changed from new to closed

The WG voted to reject this feature.

comment:5 Changed 7 years ago by cowan

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:6 Changed 7 years ago by cowan

  • Resolution set to wontfix
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.