News for hackers. Stuff that matters.
Re:JSON isn't a good configuration language by sbjs on Wednesday July 18, 2018 @09:07PM (#17563312)
That’s exactly what Lua was created for, to be a Turing complete configuration language. You can remove the whole standard library though, leaving only the built in operators, variables, functions, and control flow. To some it may seem ugly to define a configuration this way but it allows configurations to reduce duplication and add more dynamism. It’s a trade for, power for simplicity. But I guess the logical end of that is to end up evolving the configuration into a scripting language which is how Lua got where it is today.
Re:JSON isn't a good configuration language by krapp on Wednesday July 18, 2018 @09:25PM (#17563357)
>You can remove the whole standard library though, leaving only the built in operators, variables, functions, and control flow.

I just choose not to use them, and limit myself to tables or an API that generates tables when using it for config files.