lexical declare function
Posted: Tue Jan 06, 2015 8:14 am
In newLISP, lexical symbol is declare with *let*, *letn*, *letex* and *args expression*.
If it is possible that add *Perl-lish* style lexical declare function like *my*(expr scope) in newLISP?
Although this style declaration could implement with *let*, but when transfer perl (or other language) code to newlisp line by line, too much nest *let expression* would be write that would greatly reduce readable of code.
If add this style declaration syntax, newLISP code would less more parenthesis.
If it is possible that add *Perl-lish* style lexical declare function like *my*(expr scope) in newLISP?
Code: Select all
(define (sub-name arg)
(expression-list)
(my lexical-symbol 1)
(+ 1 lexical-symbol))
(= lexical-symbol nil)
If add this style declaration syntax, newLISP code would less more parenthesis.