-
-
Notifications
You must be signed in to change notification settings - Fork 4
Lisp
In an ideal world swift is the better rust and wasp is a better lisp
In Lisp to create an object like foo:{bar:3} you have to resort to ugly reader macros like #S(foo :bar 3)
Wasp is a modern programming language and 'post-lisp' data format, fixing the shortcomings of
JSON (no comments, verbose quoted keys…) ,
ECMA (breaking JS semantics) and
Lisp (maps second order citizens).
The big difference to Lisp is that everything is map based, lists are flat maps like in JS : ['a','b'] == {0:'a' 1:'b'}.
This gives an universal exception-less object data type, just like lists in lisp.
What do Lisp, ECMA and Wasm have in common anyway? Unbeknownst to many, thanks to closures and ECMA Objects, modern JavaScript is getting ever closer to the original idea of Lisp.