samrushing/irken-compiler

lift internal functions to the top level

samrushing opened this issue · 1 comments

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.