Page 1 of 1

array literals

Posted: Sun Jul 13, 2014 6:15 pm
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.