All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
hmm, I wasn't aware of that. Mind explaining it a bit?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.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law