Of course it could just default to private, and if you wanted something you'd have to specify that.
- I don't think that private-default is a universally (or more importantly, widely) reasonable default
- It adds another case where Rust is unopinionated and gives the user another way to do a basic function.
I like Rust for its unopionation, generally, but I think that the returns for this kind of thing diminish as you get to really boilerplate stuff.
mod foo
pub mod foo
pub(crate) mod foo
clearly when you leave the visibility modifier out, the default is private.