Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

YAML seems like a good that gets harmed by feature-creep. All I want when using YAML is a simple human-friendly text-format for slightly structured data. But all those special features and edge cases...as if I even have the time to learn about them. Values should be only text. Outside of the handful clear specified cases of numbers and maybe true/false/none, they should not have any other interpretation on the parser.

Isn't there something like a simple YAML-definition and some YAMl-schema for the powerusers?



He mentions it at the end (the 'YAML subset' alternative), but the edge cases only cause issues if your keys and values begin with special characters but are intended to be simple text. I tend to defensively quote stuff (probably much more than I have to), and I rarely find these issues. I have other issues with YAML but not this.


> Values should be only text. Outside of the handful clear specified cases of numbers and maybe true/false/none, they should not have any other interpretation on the parser.

I think simpler way would be just forcing quoting on text. That fixes the boolean and the different base numerics problem


YAML has come from Perl world.

Of course it has feature creep. It’s a Perl thing.


Wouldn't it be easy to make those features optional and switched off by default in "YAML--"?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: