Re:SDLang – Simple Declarative Language
by ebingdom on Sunday May 01, 2022 @12:58PM
(#31226564)
Looks interesting, but does it offer any unique features that set it apart from other such languages like JSON, XML, etc.? I see that matrix example, but is it any different from an array? (I couldn't tell from reading the docs.)
[ Parent
| on HN ]
Since when are json or XML not human readable or writable?
Did you reply to the wrong comment?
Yes, sorry.
Unlike JSON and XML its designed to be human readable and writable. It's more like a better YAML.
I hear this not-for-human comment so often, I really have to second mrtweetyhack's now dead comment and this one. When did this meme start making the rounds?
JSON especially is incredibly human read/writeable and its relative lack of ambiguity is nearly unparalleled., and it's syntax is minicule. YAML is particularly bad in this regard. XML is usually pretty humanly readable, editable too, and has many fewer of the issues around ambiguity, but I sympathize with the sentiment since it can get's out of hand much more readily.
So its a competitor to TOML? (or TOML to it, I dunno when this was created)
Since when are json or XML not human readable or writable?
Re:SDLang – Simple Declarative Language
by nileshtrivedi on Sunday May 01, 2022 @03:08PM
(#31227745)
JSON5 might be a good candidate for these attributes.