🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3403

Re: GOTO single exit point (was: Re: How to eliminate GOTO?)

#3403
From: Christopher R. Volpe
Date: Wed, 06 Sep 1995 13:08
27 lines
1921 bytes
In article <KANZE.95Sep6105955@slsvhdt.lts.sel.alcatel.de>, kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) writes:
>In article <42hmj1$96o@rdsunx.crd.ge.com> volpe@bart.crd.ge.com
>(Christopher R. Volpe) writes:
>
>
>|> >Maybe you misunderstood me. I am _not_ proposing that gotos are a reasonable
>|> >alternative to multiple return statements. Both are bad and avoidable.
>
>|> Ah... Ok. So you prefer the umpteen-levels-of-if-statement-nesting method?
>
>I don't pretend to speak for Paul Long, but I prefer the style where
>each function does one, and only one, thing. 

What's your definition of "thing"? One statement? Doing "one thing" doesn't
say much about the appropriate length of a function.

> In this case, you don't
>get umpteen levels of if statement nesting. 

Non-sequitur. There are a million ways that your "one thing" can go wrong,
depending on what your "one thing" is. 

--

Chris Volpe				Phone: (518) 387-7766 (Dial Comm 8*833
GE Corporate R&D			Fax:   (518) 387-6560
PO Box 8, Schenectady, NY 12301		Email: volpecr@crd.ge.com
Technical Details
Message-ID: <42k6go$fff@rdsunx.crd.ge.com>
Path: arc1-ca.pugleaf.net!bart.crd.ge.com!volpe
References: <3vn1ht$kj8@martha.utk.edu> <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu> <41iebe$kec@news0.rain.rg.net> <41pm80$skp@inferno.mpx.com.au> <DE02nC.B58@eskimo.com> <41t0sb$15e@news0.rain.rg.net> <DE6G2z.JJD@crdnns.crd.ge.com> <4258ak$cj7@news0.rain.rg.net> <42hmj1$96o@rdsunx.crd.ge.com> <KANZE.95Sep6105955@slsvhdt.lts.sel.alcatel.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bart.crd.ge.com!volpe
From: volpe@bart.crd.ge.com (Christopher R. Volpe)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: GOTO single exit point (was: Re: How to eliminate GOTO?)
Date: 6 Sep 1995 13:08:40 GMT
Organization: GE Corporate Research & Development
Sender: volpe@bart (Christopher R. Volpe)
Distribution: world
Message-ID: <42k6go$fff@rdsunx.crd.ge.com>
References: <3vn1ht$kj8@martha.utk.edu> <41cke4$gtd@sparcserver.lrz-muenchen.de>  <41glno$3a0@caip.rutgers.edu> <41iebe$kec@news0.rain.rg.net>  <41pm80$skp@inferno.mpx.com.au> <DE02nC.B58@eskimo.com>  <41t0sb$15e@news0.rain.rg.net> <DE6G2z.JJD@crdnns.crd.ge.com>  <4258ak$cj7@news0.rain.rg.net> <42hmj1$96o@rdsunx.crd.ge.com> <KANZE.95Sep6105955@slsvhdt.lts.sel.alcatel.de>
Reply-To: volpe@ausable.crd.ge.com
NNTP-Posting-Host: bart.crd.ge.com