this post was submitted on 13 Jun 2023
7 points (100.0% liked)

Programming

13226 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Hexorg@beehaw.org 4 points 1 year ago (2 children)

I do dislike Rust's namespace(module) mapping to files but I’m not certain requiring a single directory package structure is the solution as I don’t think it’s all that discouraging for having a ton of files in there… have you seen Java? If at some point you’re so concerned about compilation times you should be able to rip out modules into new crates without a problem since they are already in separate folders.

[–] rath@lemmy.world 1 points 1 year ago (1 children)

In Java it's really rare to see hundreds of files in a single package (dir)... do you have examples showing anything different??

[–] Hexorg@beehaw.org 2 points 1 year ago

Nothing I can show publically 😅