3 ms·
> s-expressions also have native symbols whereas JSON has only strings I'm not sure “native symbols” are a good thing in an interchange format. If you are seri
by dragonwriter 6y ago
> s-expressions also have native symbols whereas JSON has only strings
I'm not sure “native symbols” are a good thing in an interchange format. If you are serializing constructs from a language (Lisp, Erlang, Ruby) where that's a fundamental type, sure, it's convenient, but largely that’s a language implementation detail, from an interchange perspective there's not a lot of reason to distinguish symbols from (possibly format-constrained) strings. That they are immutable (in languages where strings are either wise mutable) and/or interned doesn't mean anything at the interchange level.
- lisper 6y ago> I'm not sure “native symbols” are a good thing in an interchange format. "Try", "writing", "a", "sentence", "in", "JSON", "syntax", "some", "time", "and", "I", "guarantee", "you", "will", "change", "your", "mind"