Article View: comp.std.c
Article #3398Re: GOTO single exit point (was: Re: How to eliminate GOTO?)
From: Paul Tolchard
Date: Tue, 05 Sep 1995 06:09
Date: Tue, 05 Sep 1995 06:09
32 lines
2129 bytes
2129 bytes
In article <429280$emm@solutions.solon.com> seebs@solutions.solon.com
(Peter Seebach) writes in reply to Paul Long:
..major snip..
>I don't buy it. Gotos don't creep. They don't infest. They're a *tool*.
>Now, setjmp() longjmp() pairs creep and infest - but gotos are *by definition*
>restricted to one function in C. Pretty limited creeping.
>
>I dislike "coding standards" based on the assumption that I'm a moron without
>the ability to judge, case-by-case, whether or not something is appropriate.
>
I can't say I'm a lover of straight jacket standards myself, but....
I would prefer to think that "coding standards" are not created with
*any* assumption about the competence of people who will be using the
standard. To do so would kill it as a usable standard.
To GOTO or not GOTO, that is the question. Whether it be nobler in the
return... (apologies to that bard rolling over in his coffin)
We all prefer to avoid the GOTO beastie, but we all have our own idea
on when it may become desirable so I think a standard should err on
the side of caution and ban it lest the programmers spend all day
debating whether a particular usage was `legal'. 8-)
This all gets a bit too religious for me.
--
Paul Tolchard | #include <std/disclaimer.h>
paul@iti.oz.au | #include <std/witty/remark.h>
BHA Computer Pty Ltd | #include <std/pseudo/picture.h>
Queensland Australia | #include <std/have_a_nice_day.h>
Technical Details
Message-ID:
<PAUL.95Sep5160912@kerri.iti.oz.au>Path:
arc1-ca.pugleaf.net!kerri.iti.oz.au!kerri!paulReferences:
<3vn1ht$kj8@martha.utk.edu> <41t0sb$15e@news0.rain.rg.net> <DE6G2z.JJD@crdnns.crd.ge.com> <4258ak$cj7@news0.rain.rg.net> <429280$emm@solutions.solon.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.lang.c Path: arc1-ca.pugleaf.net!kerri.iti.oz.au!kerri!paul From: paul@kerri.iti.oz.au (Paul Tolchard) Subject: Re: GOTO single exit point (was: Re: How to eliminate GOTO?) Organization: BHA Computer Date: Tue, 5 Sep 1995 06:09:12 GMT Message-ID: <PAUL.95Sep5160912@kerri.iti.oz.au> In-Reply-To: seebs@solutions.solon.com's message of 2 Sep 1995 02:48:16 -0500 References: <3vn1ht$kj8@martha.utk.edu> <41t0sb$15e@news0.rain.rg.net> <DE6G2z.JJD@crdnns.crd.ge.com> <4258ak$cj7@news0.rain.rg.net> <429280$emm@solutions.solon.com> Sender: paul@kerri.iti.oz.au (Paul Tolchard)