|
|
|
|
|
by MathMonkeyMan
494 days ago
|
|
True. One advantage I can imagine for a DSL is that it constrains what is possible and optimizes (syntactically) what it's supposed to be for. I think that the author of Nix justified its language that way. The counterargument is "eventually you'll need every facility provided by a programming language, so just start with a programming language." I'm not sure how I feel about it. The YAML templating situation in Kubernetes is a [shit show][1]. Then again, I did once cave into the temptation of writing a [lisp-like XML preprocessor][2] to make my configurations less verbose. It doesn't have any access to the environment, though, so it's not a general purpose configuration language, just a shorthand for static XML. [1]: https://www.davidgoffredo.com/no-string-templates [2]: https://github.com/dgoffredo/llama |
|
And yes, I have very bad memories of Kubernetes YAML, also YAML itself.