See also https://github.com/mozilla/rust/issues/8122
On Thu, Mar 6, 2014 at 1:11 PM, Tommi <rusty.ga...@icloud.com> wrote: > I think there's some unnecessary mental strain in having to think about > whether things are private or public by default. Every now and then it > causes that short pause where you need to go: *"Do I have to put 'pub' in > front of this thing? Oh, it's a trait implementation... do I don't"* or > *"...Oh, > it's a struct implementation, so yes I do"*. > > I'd like to have everything be private by default, because that would make > things simpler. Not only struct fields would become private by default, but > also trait methods (private trait methods would be accessible only from > within the default/provided methods of that specific trait). We'd get to > have one less keyword too. > > > > _______________________________________________ > Rust-dev mailing list > Rust-dev@mozilla.org > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev