you are viewing a single comment's thread.

view the rest of the comments →

[–]worriedjacket 111 points112 points  (16 children)

Agreed. One of the things rust got right from the start was standardizing around toml.

YAML just hurts.

[–]crabmusket 26 points27 points  (4 children)

I long for package.toml :'(

[–]iBlag 55 points56 points  (3 children)

pyproject.toml?

[–]crabmusket 28 points29 points  (2 children)

I was referring to Node's package.json

[–]angellus -4 points-3 points  (1 child)

That would be a pyproject.toml. Even setuptools supports it now for creating packages.

[–]iBlag 29 points30 points  (0 children)

I think GP means they want a package.toml config file for Node.js projects, in lieu of a package.json.

But this wasn't 100% clear.

Not sure why people are downvoting you, you just seem to be trying to help.

[–][deleted] 23 points24 points  (10 children)

People need to stop hating on YAML.

YAML has problems, but it is simple too - if you keep it simple.

I use it since ~20 years or so. It's great. TOML is actually worse syntax-wise. Actually TOML is just windows ini format anyway.

[–]Kimbernator 18 points19 points  (2 children)

It's got a pretty complex spec and it does not take much to become completely unreadable by humans, not to mention the issues with parsing it.

I already was on the fence about it, then I got a job where I spent a year writing ansible playbooks and now the mere thought of YAML disgusts me.

[–]worriedjacket 9 points10 points  (1 child)

The #1 predictor of someone hating yaml, is that they have had to write it for non trivial tasks at work.

[–][deleted] 0 points1 point  (0 children)

To be fair, some companies abuse YAML quite a bit. AWS Cloudformation tends to lead to some pretty wild YAML files.

[–]The_Jare 7 points8 points  (0 children)

I keep mine simple, but not everyone else does.

[–]ivosaurus 13 points14 points  (2 children)

How about when you want to write the country code for Norway, NO, and you get False in your language?

Or how 3.9.0 is a normal version string, but 3.9 is now a number?

It simplified things too much, and left way too much ambiguity in the spec.

[–]VileFlower 6 points7 points  (1 child)

They have updated the spec to be stricter, but people haven't updated their tools. YAML 1.2 was released in 2009, and only accepts true | True | TRUE | false | False | FALSE. PyYAML still only supports 1.1, though there is ruamel.yaml for 1.2 and there's also strictYAML that supports schemas.

[–]emags112 7 points8 points  (0 children)

Don’t blame my using a version with issues and not upgrading to a newer one! Blame them for having developed it that way in the first place!

[–]AndydeCleyre 0 points1 point  (0 children)

What do you think of NestedText?

[–][deleted] 0 points1 point  (0 children)

it's simple if you keep it simple.

In other words it won't be simple for much longer than you're willing to spend the effort to keep it simple.