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.

Source for wiki SquareBrackets version 2

author

cowan

comment


    

ipnr

98.14.173.81

name

SquareBrackets

readonly

0

text

I tested the usual suite of Schemes with `'[a b c]` to see how they reacted to the square brackets.  R6RS requires the result to be `(a b c)`.

Evaluates to `(a b c)`: Racket, Gauche, Gambit, Chicken, Bigloo, Guile, SISC, Chez, Vicare, Larceny, Ypsilon, Mosh, !IronScheme, STklos, KSi, Schemik, Elk, Oaklisp, SXM, Sizzle, Spark

Evaluates to the symbol `[a`, followed by undefined-variable error on `b`:  Chibi, SCM, Shoe, !TinyScheme, Scheme 9, Dream, Scheme 7, BDC, XLisp, UMB, VX, Llava, Dfsch, Inlab

Syntax error: MIT, Scheme48/scsh, NexJ, !SigScheme, RScheme, Owl Lisp

Evaluates to `#(a b c)`: Rep, !FemtoLisp

Evaluates to `($bracket-list$ a b c)`: Kawa

time

2012-06-25 08:41:54

version

2