3 ms·
I'm not a big fan of TOML, but I find the typing criticism here weak. I would far rather my configs have a strict interpretation of 89 vs "89" vs 89.0 None of
by donatj 3y ago
I'm not a big fan of TOML, but I find the typing criticism here weak. I would far rather my configs have a strict interpretation of 89 vs "89" vs 89.0
None of the INI parsers I have ever used have just returned everything as a raw castable string of exactly what the user entered. There's always a horrible layer of interpretation. Many, including the one built into PHP have confusing rules around bools, for instance
> String values "true", "on" and "yes" are converted to true. "false", "off", "no" and "none" are considered false. "null" is converted to null
Literally the quotation marks don't help.
foo = false
foo = "no"
Either way you are getting a bool false.