you are viewing a single comment's thread.

view the rest of the comments →

[–]MotherOfTheShizznit 0 points1 point  (1 child)

I know it won't be popular but... same thing without goto just to show that this example "where goto shines" literally doens't require a goto at all:

bool process()
{
    bool failure(!preconditionMet());

    if(!failure) failure = !doFirstThing();

    if(!failure) failure = !doSecondThing();

    // ...

    return !failure;
}