News for hackers. Stuff that matters.
Re:Ruby 4.0.0 Preview2 Released by throw-the-towel on Tuesday November 18, 2025 @12:12PM (#45969090)
Isn't everything loaded into the global namespace in Javascript as well? I'm talking about named imports.
Re:Ruby 4.0.0 Preview2 Released by dragonwriter on Wednesday November 19, 2025 @03:37AM (#45977173)
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.