Re: I won't bother to rewrite all of the code, so only for ParseColorTuple:
Re: I won't bother to rewrite all of the code, so only for ParseColorTuple:
Posted Dec 26, 2014 2:12 UTC (Fri) by ldo (guest, #40946)In reply to: Re: Experience shows that idiomatic "goto error_exit" is far better than the alternatives with fake loops and flags. by Cyberax
Parent article: The "too small to fail" memory-allocation rule
At least you made the effort, even if you “fixed” a non-bug and succeeded in introducing a real bug.
This was a simple, almost trivial case. Now try a more complex one. Elsewhere you will see do-once constructs nested up to 3 deep. And then there’s loops. Try and see how well your goto constructs scale up to those complexities.