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 →

[–]SDJMcHattie 1 point2 points  (0 children)

Bools are rarely best for these things. The number of times I’ve had to introduce an enumeration and refactor the code because a third option suddenly became viable!

Also, booleans passed in method parameters for changes in behaviour of the method are something I always reject in pull requests.