Rust Module System Encourages Poor Practices (Comparing to Go)

zik@lemmy.world to Programming@beehaw.org – 1 points –
dmitryfrank.com
3

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.

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