logoalt Hacker News

spprashanttoday at 8:01 PM1 replyview on HN

I agree that YAML has its issues. But saying it's bad because it has too many features seems misguided. Do those advanced features get in the way of using a simple YAML file? At least not in my experience.

That being said TOML would be my choice.


Replies

larkosttoday at 8:40 PM

Yes, the features in YAML absolutely get in the way. The "Norway problem" for example ("no" translates to "False" in versions prior to YAML 1.2), but that is just the one more people ran into. Here is a nice overview of some of the problems:

https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-fr...

I would argue that most, if not all, of those problems stem from too many features.