by makecheck · 14y ago · 0 comments
I avoid all goto, continue, early-return and similar statements though successive nesting. This solves problems:
- Code quickly shows when it has become too complex and needs to be split up.
- Code is naturally arranged in a way that makes it easier to split into functions.
- Code is naturally arranged to clean up a resource only if it has been allocated (no extra labels) and as soon as it is no longer needed.
No comments yet.