B
Bjarne Stroustrup
Joost Ronkes Agerbeek said:Thanks for the answer!
The C# design team thinks the user cares because it makes their code more
readable. I'm not partial to either view, I was merely curious.
Joost Ronkes Agerbeek
Maybe. it's always hard to guess what a team thinks; usually we only
see what they do. In this case, I suspect that they simply didn't
think of the more general use of p-> (and obj. )
I don't think that (in general or in this case) prohibiting a safe
operations increases readability. If calling p->f() where the value of
p isn't use is bad, then how about calling p->f() and not using p (by
accessing only static members from within f())? Should that be
outlawed also? I think not. In that direction lies serious "nannyism".
- Bjarne Stroustrup; http://www.research.att.com/~bs