Status of braces.
Stefan Matthias Aust
sma at netsurf.de
Thu Jul 15 21:54:47 UTC 1999
>But I have always thought that syntax for specifying array literals
>that contain expression values was needed. The {} syntax seems as
>good as any.
IMHO, the braces always looked somewhat alien.
However, just an idea but has anybody ever considers something like LISP's
or SCHEME's unquote mechanism? While
`( (+ 1 2) 4)
is a constant expression consisting of one literal array and a 4,
`( ,(+ 1 2) 4)
is an array containing 3 and 4.
In Smalltalk
#( ^(1 + 2) 4)
with "^" meaning somthing like escape could work...
bye
--
Stefan Matthias Aust // Bevor wir fallen, fallen wir lieber auf.
More information about the Squeak-dev
mailing list
|