That could be considered a problem by itself. But it depends on the exact situation.
Printable View
hmm, I wasn't aware of that. Mind explaining it a bit?Quote:
That could be considered a problem by itself. But it depends on the exact situation.
Thanks
Well, if the primary use of the functions is their side effect, and the return value is merely a success indicator, it's mostly fine. (I'd prefer exceptions, but not everyone does, and in some environment, exceptions cannot be used.)
If the return value is more significant and the side effect is really a side effect, that's bad.