Reasons to prefer named module files:
mod.rs breaks the otherwise consistent relation between file hierachy and module hierachy
- name and location of a file should be independent of whether or not the module it represents has submodules
- having many files with the same name can be confusing to navigate
- the rust reference recommends using the newer convention
Reasons to stick with mod.rs:
- No transition effort required
Reasons to prefer named module files:
mod.rsbreaks the otherwise consistent relation between file hierachy and module hierachyReasons to stick with
mod.rs: