Article View: comp.std.c
Article #3505Re: Multi-level break and elimination of GOTO
From: A. van Kessel
Date: Mon, 27 Nov 1995 18:52
Date: Mon, 27 Nov 1995 18:52
19 lines
1770 bytes
1770 bytes
Why should anyone want to eliminate goto ? And why by a mechanism that is even less clear than goto. Must we extend a language just to make it "politically correct" ?? If you cannot avoid goto's :: dont avoid them. If you can only avoid goto's by obscure constructs or flag-spagetty :: just stick with the goto's ; they provide more clearity in such cases. Note that most (human) readers are better at finding out the flow of control of a progam than at understanding the flow of data/status/flags/indicators. The intention of the writer should be just to make it lean and clear: just by keeping the number of "names in scope" (including labels and unnamed loops) low. If I can reduce the number of bracepairs, or sourcelines, can avoid repeating the same expressions/statements/function-calls/etc ,or can avoid to fiddle with some loop-conditions, I feel no shame to use a goto. BTW I'm not religious. Adriaan van Kessel.
Technical Details
Message-ID:
<DIptrv.90z@rivm.nl>Path:
arc1-ca.pugleaf.net!EU.net!sun4nl!rivm!newsReferences:
<486cj7$o4s@news.mel.aone.net.au> <48bpa2$lmf@news.mel.aone.net.au> <m0tFpAH-000FeXC@eyrie.demon.co.uk> <490b59$3qt@panix.com> <491cb0$7dp@spool.cs.wisc.edu> <6495326.71820.1619@kcbbs.gen.nz> <rnb4tvqcs8u.fsf@euax7i3c01.eua.ericsson.se>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.lang.c Path: arc1-ca.pugleaf.net!EU.net!sun4nl!rivm!news From: "A. van Kessel" <imaavk> Subject: Re: Multi-level break and elimination of GOTO Content-Type: text/plain; charset=us-ascii Message-ID: <DIptrv.90z@rivm.nl> To: konfrbr@euax7i3c01.eua.ericsson.se Sender: news@rivm.nl Content-Transfer-Encoding: 7bit Organization: Rijksinstituut voor Volksgezondheid en Milieuhygiene, Bilthoven, NL References: <486cj7$o4s@news.mel.aone.net.au> <48bpa2$lmf@news.mel.aone.net.au> <m0tFpAH-000FeXC@eyrie.demon.co.uk> <490b59$3qt@panix.com> <491cb0$7dp@spool.cs.wisc.edu> <6495326.71820.1619@kcbbs.gen.nz> <rnb4tvqcs8u.fsf@euax7i3c01.eua.ericsson.se> Mime-Version: 1.0 Date: Mon, 27 Nov 1995 18:52:42 GMT X-Mailer: Mozilla 1.1N (X11; I; OSF1 V3.0 alpha) X-Url: news:rnb4tvqcs8u.fsf@euax7i3c01.eua.ericsson.se