> Another thing to consider: In some cases, it may make more sense to split the function into two versions, one for 'true' and one for 'false'. Then you gain the enforced explicitness. The function could call a private method to share code and pass the Boolean.
The author describes exactly this approach and implementation, under the heading "Distinct functions".
The author describes exactly this approach and implementation, under the heading "Distinct functions".