4 ms·
Symbols in ES6 are much like symbols in Lisp. Basically much where Lisp software uses symbols applies to ES6. The main difference: Lisp has simple printed repr
by lispm 11y ago
Symbols in ES6 are much like symbols in Lisp. Basically much where Lisp software uses symbols applies to ES6.
The main difference: Lisp has simple printed representations for interned, uninterned and keyword symbols.
CL-USER 23 > (let ((color-interned-symbols ' (yellow green red))
(color-uninterned-symbols '(#:yellow #:green #:red))
(color-keyword-symbols '( :yellow :green :red)))
(list color-interned-symbols
color-uninterned-symbols
color-keyword-symbols))
((YELLOW GREEN RED) (#:YELLOW #:GREEN #:RED) (:YELLOW :GREEN :RED))
Lisp also has packages for namespaces of symbols.
Here you can learn more about computing with symbols, in Lisp:
https://www.cs.cmu.edu/~dst/LispBook/ https://www.cs.cmu.edu/~dst/LispBook/
- roopeshv 11y agourl doesn't work (Forbidden, You do not have permission to access the requested address (URL)). In any case, I think the book parent is referring to: http://www.amazon.com/Common-LISP-Introduction-Computation-Engineering/dp/0486498204 http://www.amazon.com/Common-LISP-Introduction-Computation-E...
- lispm 11y agoMaybe on your side. Not here. Works fine. The book is for download from there.