Re:NestedText, a nice alternative to JSON, YAML, TOML
by dagw on Saturday October 03, 2020 @05:46PM
(#24674899)
I've been using toml for my latest project and the one thing that really bitten me is that [1,2,3] is a valid array [1.1, 1.2, 1.3] is a valid array, but [1, 1.5, 2] isn't valid and throws an exception due to it having heterogeneous types.
[ Parent
| on HN ]
Re:NestedText, a nice alternative to JSON, YAML, TOML
by sepples on Saturday October 03, 2020 @05:56PM
(#24674977)
This is something that was fixed in the forthcoming TOML 1.0 spec. Parsers that have been updated to support it will allow heterogeneous types in arrays, which your application can convert to a vector of floats or whatever collection type it uses internally.