|
The only things I would want to add to Lua is "trailing conditionals" (I think they are called)if process_the_data == true thenslice_and_dice(data)endwould becomeslice_and_dice(data) if process_the_data == trueIt really reads smoother for me like this (and having 'unless' would make things readable too)I don't use Lua as much as Ruby or Python but when I do I find the the Lua code can be quite verbose for trivial parts. I keep having to stop and ask "what is this bunch of syntax doing" The phrase 'intent revealing' comes to mind, Lua can be quite nuts and bolts and syntax can obscure semantics. When reading code what it is doing is more important that how it is doing it, at least on the first passHowever I use Lua for what it is. Never thought "if only ..."