I need a good variable name for a boolean that returns false when the object is the last in the list.
The only decent name I can think of is "inFront", but I don't think it's descriptive enough.
Another option would be isNotLast. This is not a good practice (Code Complete, p. 269, Use logical names of logical variables).
I know that I can change the definition of a variable. Thus, true is returned when the object is the last and calls the isLast variable, however this would facilitate this task if I had the first explanation.
coding-style naming-conventions
Berek Bryan Aug 04 '09 at 14:57 2009-08-04 14:57
source share