3 ms·
Without raii this is kinda needed. Though simple param checking should be allowed ideally. But you can always just do a deviation, it's not super hard.
by tubs 4y ago
Without raii this is kinda needed.
Though simple param checking should be allowed ideally.
But you can always just do a deviation, it's not super hard.
- veltas 4y agoFrankly it makes code worse a lot of the time, that's been my experience anyway. It's probably necessary if you adhere to not using goto and need cleanup code in a function, but otherwise I've seen code trying to adhere to one exit point create bugs. Linux coding standards are the pragmatic choice, use cleanup goto's. They're idiomatic, clear, safe, easy when done right.