3 ms·
I have no strong love for s-expressions, but objects and arrays are programming language constructs, not data format constructs. There's also no way in JSON to
by frenchyatwork 7y ago
I have no strong love for s-expressions, but objects and arrays are programming language constructs, not data format constructs. There's also no way in JSON to distinguish between an int and a float and a decimal type, but that's fine because it's a data format, and not a programming language literal.
The JSON and s-expr have a different indent level, which is why the hierarchy is less obvious to you.
- shawnz 7y ago> objects and arrays are programming language constructs, not data format constructs. Debatable. To me there is a clear difference between a list of things of the same type, and a mapping of names to values of potentially varying types. I don't think the specific programming language really matters, they are two totally different concepts with much different applications. > There's also no way in JSON to distinguish between an int and a float and a decimal type True, but they are just small literals which are easy to differentiate at a glance, not big multi-line structures like objects or lists. Plus s-expressions have the same issue.