3 ms·
Isn't everything loaded into the global namespace in Javascript as well? I'm talking about named imports.
by throw-the-towel 1y ago
Isn't everything loaded into the global namespace in Javascript as well? I'm talking about named imports.
- dragonwriter 11mo agoRuby doesn't have named imports; requiring a library dumps it into the global namespace (the library may be nice and define a single Module that has everythig in it, but even then that module is dumped in the global namespace, potentially conflicting with anything of the same name defined there or supplied by another required library.