2 ms·
> I think JSON's model, in which lists and objects are independent first-class entities, with distinct syntax, has something to say for it. > Oh, and we don't n
by nlitened 4y ago
> I think JSON's model, in which lists and objects are independent first-class entities, with distinct syntax, has something to say for it.
> Oh, and we don't need all those commas. I think, if I was designing a LISP-ish language, I'd have a first-class syntax for objects which used different opening and closing characters – maybe (FOO bar baz) for a list, but [FOO :BAR bar :BAZ baz] for an object.
I think Clojure has what you're looking for, and the syntax is great, much more light-weight than JSON (the syntax even has its own name: EDN). 'Objects' are first-class hash maps, your example could look like this `{:class FOO :bar BAR :baz BAZ}`.