Comment by zarzavat
3 years ago
I see the point and this is certainly a drawback of TOML but for me this is something of a boundary case between configuration and data.
When configuration gets so complicated that the configuration starts to resemble structured data I tend to prefer to switch to a real scripting language and generate JSON instead.
Expression languages like Nix, Jsonnet, Dhall, and Cue are really nice in these situations.