2 ms·
And as long as you don’t need to parse it in another language, or automatically manipulate it.
by tinus_hn 6y ago
And as long as you don’t need to parse it in another language, or automatically manipulate it.
- waheoo 6y agoIf it's stored as code it's going to be trivial to dump it to Json in the rear situations you need an application config to be read across languages.
- tinus_hn 6y agoSo now you need the runtime for that other language in your system-wide configuration management solution. Plus all the other runtimes for languages someone decided to use as a configuration language.
- enriquto 6y agoSounds alright to me, as long as you restrict to sane, reasonable languages. For example lua's "runtime" fits in a single .c file and is likely simpler than many xml or json parsers.
- choeger 6y agoBut that does not allow you to manipulate it automatically (think about moving domains or something like this), nor does it help you to detect errors (which few tools do, but many actually should do).
- yellowapple 6y agoAnd as long as you're comfortable with ingesting executable code from arbitrary sources. Why more languages don't adopt Tcl's concept of a safe/restricted interpreter for this exact use case is beyond me.