Re:Why don’t software development methodologies work? (2014)
by IWeldMelons on Saturday December 09, 2017 @10:38AM
(#15886218)
goto is used in pure c code as a substitute to exceptions, to prevent unnecessary repetition of the resource deallocation code. Even in C++ code, it is often way faster than exceptions. Goto is not scary.
[ Parent
| on HN ]
Re:Why don’t software development methodologies work? (2014)
by stochastic_monk on Saturday December 09, 2017 @11:50AM
(#15886606)
The point is that exceptions should be used for exceptional cases only.
Most situations (e.g., early returns) for which resource management would be handled by a goto are already addressed by RAII.