lua-users home
lua-l archive

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

Lua is multipurpose language, there is no standard. If you want to make it easy to understand and fix, use other lua features and standard practice of refactoring.

Domain-specific Lua (for example Lua in some game or app) might have rules
On 27 May 2022, 16:26 +0300, Duke Normandin <>, wrote:
Is there a recommended structure?
Functions first?
Then "main" program body?
Is a "main" function necessary/recommended?
Anything else?
** Bottom-posting, text-only is the netiquette way! **