Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
tick_tock_tick
2y ago
0 comments
Save
Share
The mod vs folder rs stuff is just embarrassing for Rust. I have no idea why they support more then 1 method.
0 comments
6 comments · 2 top-level
top
newest
oldest
metaltyphoon
2y ago
· 4 in thread
The do it because the first one sucked ass and the second is a huge improvement but you still have to support the old way.
sullyj3
2y ago
Which is which and why?
metaltyphoon
2y ago
mod.rs came first and that made creating modules verbose as hell. Not only that but imagine having many mod.rs files open, you wouldn’t know what module you are in by just looking at the filename.
1 more reply
baby
2y ago
mod.rs is better, change my mind
metaltyphoon
2y ago
Sure, open 5 tabs named mod.rs, so which mod are you in?
1 more reply
0x457
2y ago
I speculate that they wanted to support just `mod.rs`, but because VS Code became the editor for rust people hated seeing all tabs named `mod.rs`.
j
/
k
navigate · click thread line to collapse