News for hackers. Stuff that matters.
Re:Learning Rust – Day 4 – Understanding Modules by dragonwriter on Friday May 13, 2022 @12:24AM (#31363303)
> Every other modern language seems to roughly map directory to module (go/python etc) [...]. C/C++ is the outlier, effectively using file as a module.

Actually, no, Python uses files as modules.

Re:Learning Rust – Day 4 – Understanding Modules by pjmlp on Friday May 13, 2022 @01:28AM (#31363678)
Or a directory containing an __init__.py file inside,. describing which modules to import when the directory is imported.
Re:Learning Rust – Day 4 – Understanding Modules by dragonwriter on Friday May 13, 2022 @05:53AM (#31365276)
That's a package, not a module.
Re:Learning Rust – Day 4 – Understanding Modules by pjmlp on Friday May 13, 2022 @07:52AM (#31366309)
In Python speak yes, in CS speak, it depends on which language we are talking about.

I guess if you want to be pedantic in regards to Python, yes you're right.