5 ms·
There are no modules in JavaScript as well. At least not in ES5.
by jarek-foksa 14y ago
There are no modules in JavaScript as well. At least not in ES5.
- Androsynth 14y agoModule pattern. It is easily one of Javascripts greatest strengths.
- spacemanaki 14y agoIt's a very useful hack but I would hardly call it a great strength. As a module system it completely sucks. It does leverage one of the language's great strengths, lexically-scoped first-class functions, but that doesn't make it a strength on its own.
- Androsynth 14y agoNot sure if anyone will ever see this... It is not a traditional module I will agree. However I see it as a hybrid class/interface/module and in this role, it works very well and allows you a tremendous amount of flexibility due to the dynamicness of js.