Not sure that having a configuration file with such power is wise? TOML isn’t Javascript for example, neither is JSON. It would be too easy for others to do too much in what should be just configuration. I prefer the security of configs being restricted much much more.
Dear Paddy,
Developer can choose either to write just plain config files like regular toml, or flexible, more powerful config with advanced values such like class or method. It is not rare for the latter case, for example:
- use
enum
in config file (it is a very common feature request for toml); - use callback in config file, for example, set a ease-function for visual animation effect config items.