News for hackers. Stuff that matters.
Re:Why do we need modules at all? by AtlasBarfed on Friday April 04, 2025 @12:12PM (#43584509)
The article references the true granularity issue (actually the function names need a version number as well, not sure in my scan of the article if it was mentioned).

Modules being collections of types and functions obviously increases coarseness. I'm not a fan of most import mechanisms because it leaves versioning and namespace versioning (if it has namespaces at all...) out, to be picked up poorly by build systems and dependency graph resolvers and that crap.

Re:Why do we need modules at all? by poincaredisk on Friday April 04, 2025 @12:19PM (#43584610)
How do you imagine importing modules by version in the code? Something like "import requests version 2.0.3"? This sounds awful when you accidentally import the same module in two different versions and chaos ensures.
Re:Why do we need modules at all? by _factor on Friday April 04, 2025 @01:53PM (#43585717)
Import latest where signed by a trusted authority.