lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 12 Mar 2017, at 00:55, D. Matt Placek <atomicsuntan@gmail.com> wrote:


On Mar 11, 2017 6:45 PM, "Coda Highland" <chighland@gmail.com> wrote:
> Why not use Lua source code? That's actually one of the original
> design concepts of the language.

That's what I'm leaning towards right now.  I like YAML slightly better for the application, but not so much it's worth adding a new C library dependency, or writing a buggy halfway implementation of a subset of yaml in lua.

my 2cts: stay away from YAML. Especially if users are supposed to edit it for settings etc. small (easily overlooked) changes in formatting will break it, and you’ll have a support problem in teaching all those users how to write proper YAML. Don’t go there.

Have a look at LuaRocks rockspec files for example on how you could leverage Lua for configuration files. You might even steal some code there.

Thijs