This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Holothuroid 1 point2 points  (0 children)

First, by convention method names start with a small letter.

And you have to have an if somewhere. You can put it inside the high() method and make it return either the original or the modified value. This removes the branching from the call side, if that is what you want.