Why I'm Excited about D

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 9 13:10:18 PDT 2015


On 4/9/2015 9:12 AM, Araq wrote:
> Because trivial accessors are everywhere in Java one usually has to assume it
> has no side-effects. I fail to see the relevance of the missing () in your
> example; () doesn't scream side-effect in C++/Java/C#/C. The real issue here is
> that 'node' or 'getNode' is simply poorly named suggesting it has no
> side-effects. 'nextNode' for instance doesn't have this problem.

I agree, it seems the method is poorly named as a simple noun that implies a 
static computation, rather than as a verb that implies some sort of action.



More information about the Digitalmars-d mailing list