Re: Good Use of GOTO

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> c.k.lester wrote:
> > Anyway, I prefer the one without the GOTOs as it's easier to parse.
> Hm, is that not subjective?

Absolutely. Never said it was an objective measurement. But more people have
preferred the one without GOTOs. Now, I'm not one to appeal to numbers or
authority, but there you have it. :)

> I am use to my conditions being tested at the top and exiting early.

Yeah, we do that with short-circuiting and if...then fall-through. No
GOTOs necessary... and just as fast! and just as easy to parse!

> Is that not a lack of your experience in using goto?

Sure.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu