| ▲ | hiccuphippo 17 hours ago | ||||||||||||||||
What would you remove from TOML to make it perfect? | |||||||||||||||||
| ▲ | weinzierl 17 hours ago | parent | next [-] | ||||||||||||||||
Tables. Not from TOML, just from my config language. TOML has other applications that require its complexity. I'd still keep simple INI style sections in my config lang, but they wouldn't have deeper meaning apart from grouping. | |||||||||||||||||
| |||||||||||||||||
| ▲ | kibwen 17 hours ago | parent | prev [-] | ||||||||||||||||
All scalar types other than strings (especially nonsense like datetimes). I'm already ingesting the configuration file as a string and parsing it into a language with actual types, e.g. Rust, and the act of parsing it into my defined configuration type will itself identify any problems with the config; having half-assed types like "int" in the config file format itself is not only useless, it's counterproductive because it requires people to ask questions like "okay, but what actually is the maximum range of integer values allowed to be contained in this type?". Just enforce UTF-8 encoded string values and let me take care of data validation. | |||||||||||||||||
| |||||||||||||||||