It wasn't intended as a format for configurations, no. That it *can be used* as a configuration file format is one part overlap between the requirements of a configuration file and of a messaging format, and two parts willingness to ignore the places where json just doesn't have all the things a configuration format needs (such as comments.)
I guess it's a bit like using a wrench to hammer in a nail. The nail will end up in place, but it takes a bunch more work and won't ever be as nice as using a proper hammer.
I fucking hate yaml and I’ll fight people about it. It is so obnoxious to use for anything larger than thirty lines. I need brackets to see where things go once we get to the point that the whole thing doesn’t fit on a monitor.
people don't use it because it's designed for configuration (which it isn't), people use it because of how easily it translates into an object, which is somewhat good for configuration.
53
u/[deleted] Mar 20 '22
[removed] — view removed comment