4 ms·
1. It's a byproduct of another project I've been working on, a programming language that's essentially JSON Lisp. I tried both YAML and CSON as syntax for the l
by ar-nelson 12y ago
1. It's a byproduct of another project I've been working on, a programming language that's essentially JSON Lisp. I tried both YAML and CSON as syntax for the language, and neither worked quite like I wanted. The features that make it useful for the language are:
- Easy chaining of one-element maps. `a b c d` = `{a: {b: {c: d}}}}`
- Only a few reserved characters, so just about anything can be an unquoted string (symbols, etc.)
- Parenthesized maps
2. This is the first version. An emitter will probably be in the next version. The canonical version is essentially "JSON, but with unquoted strings where possible, no colons, and parens instead of braces".