3 ms·
I wish people would stop seeing the world so black or white. JSON is not the the be-all and end-all of formats. All formats have their drawbacks, and there is
by capableweb 3y ago
I wish people would stop seeing the world so black or white.
JSON is not the the be-all and end-all of formats. All formats have their drawbacks, and there is not one format that is THE BEST for absolutely everything.
The author never claimed that YAML is simple, or whatever. But what I can see, is why'd they use YAML instead of JSON for this specific project.
The first thing that comes to mind is multiline strings, as files typically have multiple lines. How'd you do that with JSON? "fn main {\nprintln!(\"Hello\")\n}"? Looks super fun to edit.
- zelphirkalt 3y ago> The author never claimed that YAML is simple, or whatever. But what I can see, is why'd they use YAML instead of JSON for this specific project. I think you should read the OP again.
- capableweb 3y agoWould you like to answer a bit more explicitly about what exactly you mean? Or am I supposed to guess the meaning?
- zelphirkalt 3y ago> YAML is very easy for both humans and programs to work with and parse, hence why it's the most logical choice in context of Scaffolder.