Quote: problems with error handling by return code and status flags; checked at call sites; harder to read; multiple error cases ignored; harder to modify; expands set of legal values
Topic: exception handling by unique value
Topic: failure returning functions and expressions
Quotation Skeleton
Both [return code and status flag] techniques have noticeable drawbacks. First, and … error is discovered and subsequently handled only when … Second, these tests are located throughout the program, … difficult to determine if all the necessary error … testing is coded inline. The return code technique … independent of the computation.
Google-1Google-2
Copyright clearance needed for quotation.
Related Topics
Topic: exception handling by unique value (8 items)
Topic: failure returning functions and expressions (24 items)