Re:Lua is a viable alternative for JSON
by srhtftw on Saturday November 04, 2023 @06:16PM
(#38145744)
As I mentioned in a previous reply¹ to a post of yours, 15 years ago I hit one of Lua's many footguns when I mistakenly used Lua as an alternative to JSON. To my knowledge no version or variant of Lua has made any progress on addressing this issue.
Lua is nice in many ways but unless you have a pressing need for it I'd recommend sticking with JSON.
If you really want executable configurations please consider a newer language like https://dascript.org or https://cuelang.org which provide better type safety.
Re:Lua is a viable alternative for JSON
by TrueGeek on Sunday November 05, 2023 @09:53AM
(#38151625)
I misread this and expected that link to be a 15 year old HN comment from you to OP. I was impressed how quickly you recalled such an old conversation.
Lua is nice in many ways but unless you have a pressing need for it I'd recommend sticking with JSON. If you really want executable configurations please consider a newer language like https://dascript.org or https://cuelang.org which provide better type safety.
1- https://news.ycombinator.com/item?id=38030778