Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
metaltyphoon
2y ago
0 comments
Save
Share
Sure, open 5 tabs named mod.rs, so which mod are you in?
0 comments
3 comments · 1 top-level
top
newest
oldest
baby
2y ago
· 2 in thread
Open 5 libs.rs, which crate are you in? Always look at full path instead of filename. A mod.rs means a much more cleaner organization, as you know that all of a folder module's content is within that module, and you don't have to look elsewhere.
metaltyphoon
OP
2y ago
Yes this would be a problem if for every module you had to create a lib.rs, which is not the case. mod.rs has a much higher # of occurrences.
baby
2y ago
I’ve worked in plenty of codebases that were split in many crates, not many folder modules
j
/
k
navigate · click thread line to collapse