🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1268

Re: Is an argument to break, continue a bad idea?

#1268
From: Peter Miller
Date: Mon, 30 Apr 1990 14:08
31 lines
1888 bytes
in article <2647@mica6.UUCP>, henley@motcid.UUCP (Aaron Henley) says:
> I always thought a BREAK statement was equivalent to a GOTO
> statement but the compiler sets up the labels.   For those
> who don't like the use of GOTO in their code you shouldn't
> like the BREAK either.  Try looking at your assembly output!
> I did a diff on the .i files using a break compared to a goto and the
> only difference was the label name.
Oh, come on!  I could paraphrase it as
"I always thought an IF statement was equivalent to a GOTO
statement but the compiler sets up the labels.   For those
who don't like the use of GOTO in their code you shouldn't
like the IF either.  Try looking at your assembly output!"

You are forgetting that structured programming is a TOOL.
Too many treat it as dogma.  And we all hate bigots.

GOTOs are essential to algorithms.  Just because you choose
to use a language construct which hides them does not
alter the fact that they are there.
The only question I ever ask about a goto is
"Is it more maintainable/understanable/readable to use a goto
or not to use a goto?"
I try to avoid the dogma.

Regards
Peter Miller       UUCP    {uunet,mcvax,ukc}!munnari!neccan.oz!pmiller
                   ARPA    pmiller%neccan.oz@uunet.uu.net
/\/\*              CSNET   pmiller%neccan.oz@australia
                   ACSnet  pmiller@neccan.oz
Disclaimer?  These guys have no idea what I am on about!
D
Technical Details
Message-ID: <705@neccan.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!csc!csc3!anucsd!neccan!peter
References: <2647@mica6.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!csc!csc3!anucsd!neccan!peter
From: peter@neccan.oz (Peter Miller)
Newsgroups: comp.std.c
Subject: Re: Is an argument to break, continue a bad idea?
Message-ID: <705@neccan.oz>
Date: 30 Apr 90 14:08:45 GMT
References: <2647@mica6.UUCP>
Organization: NEC Information Systems Australia, Canberra
Lines: 31