3 ms·
I use Lua for configuration files for both personal and work related projects [1]. You get comments and the ability to construct strings piecemeal (DRY and all
by spc476 8y ago
I use Lua for configuration files for both personal and work related projects [1]. You get comments and the ability to construct strings piecemeal (DRY and all that). It's easy to sandbox the environment, and while you can't protect against everything (basically, a configuration script can go into an infinite loop), if someone unauthorized does have access to the script, you have bigger things to worry about.
[1] An example: https://github.com/spc476/mod_blog/blob/master/journal/blog.conf https://github.com/spc476/mod_blog/blob/master/journal/blog....
- dottrap 8y agoYou can set a count hook to defend against infinite loops. Lua is great.