3 ms·
I've tried something similar but found it way too painful if the comments need to be long... # Never enable this config, because if you do the space-time
by biztos 8y ago
I've tried something similar but found it way too painful if the comments need to be long...
# Never enable this config, because if you do the space-time
# continuum will collapse into itself and the cloud servers
# will disappear in a puff of steam. However, if you really
# must enable it, remember that it's boolean and go read
# TICKET-8675309 for the extensive list of side effects.
TurboFactorRenoberation = false
...so people just end up writing stuff like:
{
"ConfigKeyComment": "TICKET-8675309",
"ConfigKey": "TurboFactorRenoberation",
"ConfigVal": false
}
[edit]: formatting
- mschuster91 8y agoThat's not JSON anymore, that's pretty much enough to be considered a unique DSL. Scary that this is more or less required.
- zaphar 8y agoAlmost all applications evolve their config files into unique DSLs over time. They may choose a generic serialization for the DSL's AST but it will end up being an underspecified application specific DSL regardless.