Y
Hacker News
new
|
ask
|
show
|
jobs
by
beagle3
3643 days ago
But as long as you know it is the same thing, you could move ("hoist") it outside the loop. In Lua, you generally can (and LuaJIT2 does). In Python, rarely if ever.