lua-users home
lua-l archive

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


I'm saving some configuration data as a LUA script to a file, just like the serialization example in PiL. 

When writing string table keys I want to use the syntax { name="value" } and not { ["name"] = "value" }, to make it more readable and easier to edit by hand.  Yes, you have to check <name> for valid identifiers and reserved words.  

But now the problem.  What if I want to read this configuration file with the next LUA version?  I can only check the now known reserved words.  I can add some words that are likely reserved words in the next version, like "continue" or so.  Are there any other possibilities except to not use the shorthand syntax?

When not, what are likely reserved words in the next version?


I think the best solution would be to allow reserved words in table constructors.


   Jörg