News for hackers. Stuff that matters.
Re:The Unix-Haters Handbook [pdf] by eadmund on Monday April 22, 2024 @10:08AM (#40114549)
> Also, Unix has never had any kind of standard structured data format (JSON would work, but it didn't exist for the first 30 years of Unix's existence), which is a problem for ideas like passing command arguments as structured data.

JSON is a serialisation of structured data, not structured data itself.

Its data model is not great, either: maps have no inherent canonical serialisation (one has to assert things such as ‘keys are sorted in Unicode lexicographical order’), and there is no way to shadow map value.

A list-based s-expression format would be preferable, as it immediately lends itself to canonicalisation and associative lists support shadowing (e.g. ((a 123) (b 456) (a 789))).

There are no comments on this comment yet.