News for hackers. Stuff that matters.
Re:Toml: Tom's Obvious, Minimal Language by otterpro on Friday July 13, 2018 @11:20AM (#17523657)
I didn't know about TOML until I started using Hugo. I've been using YAML and TOML and I find both have their merits, especially for their simplicity. TOML looks like the classic INI file, and is fairly easy to use/learn. I've been trying to move toward TOML for everything. YAML is nice, but I had to be careful about white-space significance and also translation of "YES","NO", etc.

https://arp242.net/weblog/yaml_probably_not_so_great_after_a...

Re:Toml: Tom's Obvious, Minimal Language by mojombo on Friday July 13, 2018 @11:24AM (#17523689)
Absolutely. That's what I mean about TOML mapping unambiguously to a hash table. Strings in TOML are always quoted. There is no fuzzy interpretation of things like YES and NO. That way madness lies. I also am not a fan of meaningful whitespace, which is why TOML doesn't do that. Glad you're finding TOML useful, good luck on your projects!
Re:Toml: Tom's Obvious, Minimal Language by Pxtl on Friday July 13, 2018 @02:32PM (#17525510)
> There is no fuzzy interpretation of things like YES and NO

I think the big problem is that YAML is dynamically typed. If I had schema-enforced config files, I'd be perfectly happy to say that for boolean typed data all the values of YES and NO and ON and OFF and T and F and 0 and 1 can all be reasonably interpreted as a Boolean True and False. The problem happens when a string-typed or integer-typed member can also have their ON value interpreted into Boolean TRUE.

Re:Toml: Tom's Obvious, Minimal Language by mojombo on Friday July 13, 2018 @05:40PM (#17526963)
Yeah, I'll agree with that, among many other issues with YAML. =) A schema would at least solve that problem, but I don't think most simple config users want to define a schema, so strong typing is a better solution.
Re:Toml: Tom's Obvious, Minimal Language by k__ on Friday July 13, 2018 @12:02PM (#17524082)
I have to admit, the string and array syntax are the only parts that keep me from using it instead of YAML.

Probably because they are the only two features that need delimiters at start and end. The rest are only one-liners or simply stop if the next of the same type starts.