Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't everything loaded into the global namespace in Javascript as well? I'm talking about named imports.


Ruby 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: