Better Than Exceptions
Better Than Exceptions
Posted Jun 3, 2010 1:43 UTC (Thu) by jamesh (guest, #1159)In reply to: Better Than Exceptions by ldo
Parent article: GCC begins move to C++
The version using goto is a lot more readable.
While it is possible to write spaghetti code with gotos, they're also the most concise and readable way of implementing the equivalent of a "try {} finally {}" block in C. So there is no real reason to avoid their use in error handling of this type.