5 ms·
Exactly what does it solve? You ditch one configuration language for another (less feature rich) one, and then do imperative programming in it anyway.
by inshadows 6y ago
Exactly what does it solve? You ditch one configuration language for another (less feature rich) one, and then do imperative programming in it anyway.
- samatman 6y agoDepends on what you're doing, right? Dhall is going to be better than writing an inner-language monster of a config language, in YAML, TOML, or JSON. Let someone else do the work, I agree. But if the goal is to have a human-editable file that loads a few values into a map, and it often is, TOML is pretty nice. I think we've all been burned by 'configuration languages' which take on the complexity of a full programming language, in a worst-of-both-worlds sort of way. But sometimes you just want to change a font, or specify tabs-or-spaces, or set a non-default remote.
- inshadows 6y agoI have never been burned by the configuration language complexity. I'm constantly being burned by its limitation. You are right that for configuration TOML is OK. But the linked article talks about YAML in context of stuff like Ansible or K8s, where usually plain and simple imperative programming is coerced in YAML syntax.