Re:Rust's new documentation generator: 95% done
by toqueteos on Monday August 12, 2013 @04:42PM
(#6201721)
If only Rust had same implicit interfaces and visibility (first uppercase/lowercase letter) as Go...
[ Parent
| on HN ]
Re:Rust's new documentation generator: 95% done
by pcwalton on Monday August 12, 2013 @05:31PM
(#6202146)
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.