In my experience, tying your data format to a programming language is a mistake you most likely will pay for later. For example, when you need access to that data from a different programming language.
One nice thing about Lua is that there are Lua implementations in Rust, C, C#, Go, Javascript, Kotlin, and there’s even a compiler which converts Lua scripts in to native machine code.
using json is an option (which is mentioned in the article). But lua gives you some features that json cannot match - it's powerful, may be too powerful tbh.
Comments (58) 12 threads
Show all comments
Showing thread 5 of 12
If you need to access the data from a different language, you just load Lua in the other language.