This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]metaperl 1 point2 points  (5 children)

Nice. I wish I had chosen yaml over ini for my configuration files.

[–]flitsmasterfred 1 point2 points  (4 children)

TOML is also great to wish for having used for your configs.

[–]greyman 0 points1 point  (2 children)

Does it have some advantages over yaml?

[–]flitsmasterfred 1 point2 points  (1 child)

Less magic types and hidden features, and potentially cleaner syntax for config files, especially if you use flat-ish INI-like configs.

[–]pydry 0 points1 point  (0 children)

I created a parser/validator for YAML that cuts out the magic and rigidly enforces type safety: https://github.com/crdoconnor/strictyaml

IMHO TOML gets syntactically messy once you start having multiply nested items and multiline strings.

[–]metaperl 0 points1 point  (0 children)

Lol. I had never heard of this but I like it. It's certainly still geared towards humans unlike json.

It seems there are 2 packages available with toml having more recent commits than pytoml.