Re:JavaScript Modularity Shaming
by nostrademons on Wednesday January 07, 2015 @06:17PM
(#8853978)
Closure also has a goog.scope call that lets you locally alias various imports, but the compiler is aware of it and can optimize across scope boundaries. Pretty handy - besides dead-code elimination, variable renaming also works with goog.scope and so you don't have to treat each import as an extern and spell out the fully-qualified name in the generated code.
[ Parent
| on HN ]
There are no comments on this comment yet.