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 <dukeofpurl@gmx.com>, wrote:
Is there a recommended structure?
Functions first?
Then "main" program body?
Is a "main" function necessary/recommended?
Anything else?
--
Duke
** Bottom-posting, text-only is the netiquette way! **