Post #75 402 Oct 17, 2021, 13:00 UTC #cpp https://mortoray.com/2015/06/15/get-rid-of-those-boolean-function-parameters/ Musing Mortoray Get rid of those boolean function parameters - Musing Mortoray I need to make a quick variation of a function. The calculation, or behaviour, differs slightly on the needs of the caller. I throw in a bool parameter to do this switch. It’s fast and easy, yet I’m almost always disappointed later. It’s a bit hard to read…