irken-compiler
irken-compiler copied to clipboard
lift internal functions to the top level
A proper modular style will place internal functions inside a scope so they don't pollute the global namespace. Often these functions do not reference the current lexical scope, and will perform better if lifted to the top level.
note: this is just a limited form of lambda lifting.