array literals

For the Compleat Fan

array literals

Postby ssqq » Sun Jul 13, 2014 6:15 pm

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.
ssqq
 
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

Return to Anything else we might add?

Who is online

Users browsing this forum: No registered users and 1 guest

cron