3 ms·
The trick is to not use config languages, but use the same language as you already wrote the rest of the application in. Your application then becomes a librar
by amelius 5y ago
The trick is to not use config languages, but use the same language as you already wrote the rest of the application in.
Your application then becomes a library that is invoked by the config file.
This also enables advanced features such as configuring call-back functions.
- nonbirithm 5y agoThis works well if the program is written in a dynamic language like Lua, but in a compiled language it not only requires a recompile per change, but an entire development environment set up in order to modify the config at all.
- amelius 5y agoYou could also use a dynamic language and make calls using a FFI.