Hacker News new | ask | show | jobs
by toqueteos 4697 days ago
If only Rust had same implicit interfaces and visibility (first uppercase/lowercase letter) as Go...
1 comments

We can't have implicit interfaces because they're incompatible with adding methods to types that you don't own (for example, adding methods to builtin types like int). Having this functionality is very important for our generics to work.

Using case for visibility is convenient but it can cause problems when you change a method from public to private or vice versa; that's why it's not done in Rust.