Get Thinking

A detailed discussion of these questions can be found in the "Appendix A" section on page 487.

Mull It Over

  1. Are return values and exceptions equivalent error reporting mechanisms? Prove it.

  2. What different implementations of tuple return types can you think of ? Don’t limit yourself to a single programming language. What are the pros and cons of using tuples as a return value?

  3. How do exception implementations differ between languages?

  4. Signals are an old-school Unix mechanism. Are they still needed now that we have modern techniques like exceptions?

  5. What is the best code structure for error handling?

  6. How should you handle errors that occur in your error-handling code?

Getting Personal

  1. How thorough is the error handling in your current codebase? ...

Get Code Craft 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.