goto

Brad Roberts braddr at puremagic.com
Thu Feb 5 20:24:03 PST 2009


Robert Fraser wrote:
> Which looks even worse. IMO, this is the perfect place for goto -- small
> function, used only for an exit condition. There's no "spaghetti code"
> here at all. I know goto used to be abused back in the day, but it has
> its place.

Oh, I agree.  I didn't say that in my response because he specifically
asked for other ways to write it.  In this case, I see no reason to
change it.  That said, it can be nearly as clean without the goto for
those that are religious about it.

Later,
Brad



More information about the Digitalmars-d mailing list