3 ms·
> 8. Automatic return on last line This is all good and fine until you realize that this will bite your ass when you need to write performance-sensitive code.
by wereHamster 14y ago
> 8. Automatic return on last line
This is all good and fine until you realize that this will bite your ass when you need to write performance-sensitive code. So you end up with lots of explicit 'return' statements at the end of your functions.
> 9. things like {log, tan} = Math in the global scope just to save a few keystrokes elsewhere.
It's not only for saving keystrokes, but may also be improving performance. Some reason people add `local _G = _G` to the top of Lua source files to speed up access to _G.