Chapter 17. Unusual Control Structures
Contents
Related Topics
General control issues: Chapter 19
Straight-line code: Chapter 14
Code with conditionals: Chapter 15
Code with loops: Chapter 16
Exception handling: Exceptions
Several control constructs exist in a hazy twilight zone somewhere between being leading-edge and being discredited and disproved—often in both places at the same time! These constructs aren't available in all languages but can be useful when used with care in those languages that do offer them.
Multiple Returns from a Routine
Most languages support some means of exiting from a routine partway through the routine. The return and exit statements ...
Get Code Complete, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.