Java has the same problem. The compiler just errors out when it can't resolve 
an ambiguity.

A trade-off I guess, between syntax tersity and the occasional "cannot resolve 
ambiguity" error message.

Marijn Haverbeke wrote:
> Rust used to work like this (dots as package name separators) a few
> months ago. We switches because we wanted to have different namespaces
> for module names, types, and values. When doing that, a different
> syntax is needed for field access and module access, or you get
> ambiguities.

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to