====================================================================
Published: 5 September 2022
Tags: c
Christopher Bazley argues that the use of goto statements in C programming is not as effective as other methods of error handling, despite being a widely used practice. Christopher cites several examples of why this is the case and argues that programmers should be more open to other methods of error handling.
Some highlights:
- goto should only really be used to abandon processing in some deeply nested structure, such as breaking out of two or more loops at once
- Deferred error handling > Error handling by early exit from a function