array literals

For the Compleat Fan
Locked
ssqq
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

array literals

Post by ssqq »

I think newLISP should add syntax of "array literals", but [..] have been used by symbol.

without "array literals", a list with elements need evaluted is as following:

Code: Select all

(set 'str-quote (char 34))
(set lst (list str-quote (list str-quote)))
If add [..] as array literal:

Code: Select all

(set 'arr [str-quote [str-quote]])
It is more concisely.

Locked