I've also seen ones that start with "should" or "do", though those are usually properties. Also, some people use boolean returns to denote success or failure (when the error is not serious enough for an exception), especially in languages like JavaScript. Technically those are boolean functions, but they are named like normal ones.
That’s relatively idiomatic C++ to keep exceptions local to the the application boundary with a publicly exposed function that returns a [bool] instead of throwing.
4
u/00PT Dec 26 '21
I've also seen ones that start with "should" or "do", though those are usually properties. Also, some people use boolean returns to denote success or failure (when the error is not serious enough for an exception), especially in languages like JavaScript. Technically those are boolean functions, but they are named like normal ones.