2 ms·
I see two problems with this for my use. "The format holds dictionaries (ordered collections of name/value pairs), lists (ordered collections of values) and st
by karmakaze 6y ago
I see two problems with this for my use.
"The format holds dictionaries (ordered collections of name/value pairs), lists (ordered collections of values) and strings (text) organized hierarchically to any depth."
1. Ordered dictionaries are not conveniently supported in all languages I tend to use.
2. The only element type is string which means that parsing of common types has to be separately and differently by each implementation that uses such a file with potential for unspecified differences.
- jiggawatts 6y ago> Ordered dictionaries are not conveniently supported in all languages I tend to use. Ordered dictionaries are a fundamental, extremely basic data type present in every language I've used in three decades. a) What modern, widely used language doesn't have them? b) Why? c) Okay, so you've picked a bad language that has only hashtables. You can still implement ordered keys using an array of the keys & values in sorted order, and a hashtable of keys to the array indices.