Brian Di Palma (2014-10-08T09:10:22.000Z)
domenic at domenicdenicola.com (2014-10-15T18:57:46.979Z)
That was one the intentions but I get the feeling that this change is either too late or far more complex then it seems. In future we might have a "use strict" or "use macros" for modules which would enforce this clean slate for modules. It's not a big deal but I would have preferred the "use globals" approach and having modules clean by default instead. We have over 3000 classes + tests and I can't imagine more then 10% need access to the global (to access non module third-party libraries). I feel large scale JS applications using modules will be very much like this. I'm currently in the process of an automatic conversion of these global scripts into CJS modules. ( https://github.com/briandipalma/global-compiler ) The conversion to clean ES6 modules from global scripts seems very amenable to tooling/automation. Given the future is longer then the past I hope the reason for not considering this is not a deadline issue.