in reply to Re^3: at continue, last
in thread at continue, last

The point of the posting was to examine different ways of solving the underlying problem, namely ensuring that there's a single path to cleanup code in a conditional, and the obscure means by which it could be achieved. Perhaps that would have been a better introduction.

Replies are listed 'Best First'.
Re^5: at continue, last
by BrowserUk (Patriarch) on Jun 06, 2014 at 18:14 UTC
    The point of the posting was to examine different ways of solving the underlying problem,

    Understood.

    Most times, (though not all), when I find myself coding a tortuous solution, if I can step back from it, or get someone else's eyes upon it, there is a better solution.

    But almost without exception, if you focus too close on the problematic code out of context, you lose the overview which allows for the clean solution.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.