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.

Reply via email to