Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail From: Thomas Rachel Newsgroups: comp.lang.python Subject: Re: try/except/finally Date: Tue, 10 Jun 2014 09:27:29 +0200 Organization: A not so newly installed InterNetNews server Lines: 20 Message-ID: References: <0a89c96d-de62-42ad-be48-6107ce10d215@googlegroups.com> <539396F3.5090508@stoneleaf.us> <2e94b972-a630-4190-bc33-1074eb3278e3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: tota-refugium.de 1402385402 27377 eJwFwQEBBDEIAzBLsF9bkPMw8C/hEvzobF2CF4vtrVtHOUJt92tJPurpZ+HBJgMvLcynIn2t/3pgclNwgFvjMaBsj/C8M07gWoGe5wO7Kx3M (10 Jun 2014 07:30:02 GMT) X-Complaints-To: abuse@news.tota-refugium.de NNTP-Posting-Date: Tue, 10 Jun 2014 07:30:02 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Hamster/2.1.0.11 X-User-ID: eJwFwQkBwEAIAzBL4ytgB674l7AkDIJNR8Dj4qTJT6TueWKmmFVq6PW5pzxLsP24wlW3/QEd7xF5 In-Reply-To: <2e94b972-a630-4190-bc33-1074eb3278e3@googlegroups.com> Cancel-Lock: sha1:jTTSo0PDiKDzmiy9Z45wRn0+1m8= X-NNTP-Posting-Host: eJwNzAcBwDAIADBL/CMHKPiXsEVAlA1tXExN9PS8sculaoKHeiGct0nuXoR2CluApRUnzBwUHYszwUKjkgR66oP/csSGR9KsVzZJuln3AYhyHbk= Xref: csiph.com comp.lang.python:73075 Am 08.06.2014 05:58 schrieb Rustom Mody: > Some people¹ think that gotos are a code-smell. > ¹ I am not exactly those people. > A chap called E W Dijkstra made the statement: "Goto statement considered > harmful" and became famous. And became widely misunderstood. If anybody would read the whole what he wrote, people would learn that he doesn't criticise the *use* of goto, but he wants the *replacement* of goto with something else (like exceptions). As C doesn't have exceptions, goto is in many cases the simplest and easiest way of handling errors. Essentially, you can write both good and bad code both with and without goto. Thomaas