Re: There would be precisely as many "goto" statements
Re: There would be precisely as many "goto" statements
Posted Dec 25, 2014 23:07 UTC (Thu) by ldo (guest, #40946)In reply to: Re: Wouldn't it be simpler and more readable to use a goto instead of a pseudo-loop? by mchapman
Parent article: The "too small to fail" memory-allocation rule
And you would need a different label for each. And the extra visual burden of ensuring that each goto is paired with the right label. Which is unnecessary with a break, since that can only ever terminate one enclosing construct.
And the further burden of getting things wrong when you try refactoring the code.
Like I said: NO GOTOs!