Comment by tick_tock_tick
9 months ago
The mod vs folder rs stuff is just embarrassing for Rust. I have no idea why they support more then 1 method.
9 months ago
The mod vs folder rs stuff is just embarrassing for Rust. I have no idea why they support more then 1 method.
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.
Which is which and why?
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 reply →
mod.rs is better, change my mind
Sure, open 5 tabs named mod.rs, so which mod are you in?
3 replies →
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`.