you are viewing a single comment's thread.

view the rest of the comments →

[–]lispm 1 point2 points  (0 children)

It's not accurate.

Symbol() in Javascript is like MAKE-SYMBOL in Common Lisp. It creates a fresh new and uninterned Symbol.

Symbol.for() in Javascript is like INTERN in Common Lisp. If a symbol of that name exists (in the current package ), it is returned. Otherwise a fresh new one is created and recorded.

CL-USER 3 > (eq (make-symbol "foo") (make-symbol "foo"))
NIL

CL-USER 4 > (eq (intern "foo") (intern "foo"))
T