🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2205

Re: use of the break statement

#2205
From: Chris Sonnack
Date: Fri, 08 Mar 1996 23:03
29 lines
1647 bytes
Ken Arromdee (arromdee@jyusenkyou.cs.jhu.edu) wrote:

>> If you have conditions that force a loop to stop executing why not
>> just have a flag that is set when the loop is to terminate?
>
> That's making C into Pascal.

This reminded me of the header files for the old OPUS BBS code:

	#define  BEGIN  {
	#define  END    }

My, oh, my.

ObOnTopic:

I side with the folks who use "break" and "continue" and I wouldn't like
using C without them. I feel they make for much cleaner code. If ones
loops are so dense that "break" and "continue" seem to add confusion,
perhaps the loop needs rewriting.

I also VERY MUCH agree with the poster who said that, although the issue
is probably unresolvable, it is well worth discussing.

--
Chris Sonnack  <cjsonnack@mmm.com>                  http://eishcq.mmm.com
Engineering Information Services/Information Technology/3M, St.Paul, Minn
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"The first duty of a revolutionary is to get away with it."
Technical Details
Message-ID: <4hqebd$1ip@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gfcl7$2ls@solutions.solon.com> <4gnbcp$biq@solutions.solon.com> <4h2s54$o3@solutions.solon.com> <4h758c$4j6@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: cjsonnack@mmm.com (Chris Sonnack)
Newsgroups: comp.lang.c.moderated
Subject: Re: use of the break statement
Date: 8 Mar 1996 17:03:09 -0600
Organization: 3M/IT/EIS (St.Paul,MN 55144)
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4hqebd$1ip@solutions.solon.com>
References: <4gfcl7$2ls@solutions.solon.com> <4gnbcp$biq@solutions.solon.com> <4h2s54$o3@solutions.solon.com> <4h758c$4j6@solutions.solon.com>
Reply-To: cjsonnack@mmm.com (Chris Sonnack)
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: TIN [version 1.2 PL2]