Hacker News new | ask | show | jobs
by darubedarob 182 days ago
But.. why ? Globals are just variables that reside in the wrapping env table that also contain the C functions. If a closures is a onion of table lookups out of the function context from local -> function scope -> global scope is simply the last lookup before a not found variable with nil is declared?
1 comments

Module exports with side effects, and setting environments doesn’t guarantee global access.