4 ms·
what is the advantage over something more standard like JSON?
by benrbray 6y ago
what is the advantage over something more standard like JSON?
- thelazydogsback 6y agoFor machine reading/writing, not much. For human reading/writing, sexprs (or Prolog terms) are much nicer as you don't need to quote everything, for example. However, (traditional) sexprs don't have defined literal map or vector/array syntax that's different from a list - for that you need an extension such as EDN format defined by Closure, but usable elsewhere.
- lokedhs 6y agoI'd say there are a few major benefits: 1. Distinction between symbols and strings. 2. A well-specified number format (integers are integers). In JSON the precision of a number is unspecified, not something you want from an interchange format. 3. It has comments. 4. It's more concise. 5. Easier to parse.