irken-compiler icon indicating copy to clipboard operation
irken-compiler copied to clipboard

lift internal functions to the top level

Open samrushing opened this issue 7 years ago • 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.

samrushing avatar Sep 06 '18 03:09 samrushing

note: this is just a limited form of lambda lifting.

samrushing avatar Sep 06 '18 03:09 samrushing