"Rainer Deyke" <rain...@eldwood.com> wrote in message news:guqno8$2fc...@digitalmars.com... > Andrei Alexandrescu wrote: >> In a member function there's no need to prefix each member. > > There isn't, but there should be. IMO. > 'with' should be banned. > Implicit access to members of 'this' should also be banned. I always > use explicit 'this->' in C++ and explicit 'this.' in D. It makes the > code much easier to read. >
This is what I love about Ruby's member access. It's just like you suggest, but with "@" prepended instead of "this." which IMO is much too clunky to require for something as common as accessing a member of the current instance. But other than that little quibble I love the idea.