Re:Lisp, Smalltalk, and the power of symmetry (2014)
by JonChesterfield on Monday May 30, 2022 @05:30AM
(#31557103)
The keyword vs symbol distinction still seems weird to me. :first vs 'first. {} delimited sequence of even length is a nice complement to () delimited sequence of arbitrary length though.
Re:Lisp, Smalltalk, and the power of symmetry (2014)
by nlitened on Wednesday June 01, 2022 @03:41AM
(#31579181)
I think of it this way: keywords are like symbols, but they survive serialization/deserialization and macroexpansion intact, so you don't need to be extra careful with quoting to prevent automatic evaluation of the symbol to some other value. And since keywords are used in code very often as keys and enums, it reduces cognitive load immensely.
> Extends the code-as-data paradigm to maps and vectors
Basically think of it as a better JSON with non of the issues you brought up.
See: https://github.com/edn-format/edn
And example:
> #myapp/Person {:first "Fred" :last "Mertz"}