🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: use of the break statement

#2215
From: Konrad Schwarz
Date: Fri, 08 Mar 1996 23:05
13 lines
1193 bytes
|> I have yet to see code which uses break/continue/goto which could not 
|> be re-written without them, but if used carefully they make the code 
|> clearer and faster.

Sorry to be so vague, but a pair of Italian researchers prooved this in
the late '60s or early '70s.  Structured programming is equivalent in
expression power to arbitrary gotos.  (Of course this is obvious when
you realize that a Turing machine can be implemented with programming
constructs.  I think what they did was to provide some kind of mapping
from arbitrary programs using only goto to programs using only structured
constructs.)

Konrad Schwarz
Technical Details
Message-ID: <4hqefk$1p5@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gfcl7$2ls@solutions.solon.com> <4gnbcp$biq@solutions.solon.com> <4h81gh$aql@solutions.solon.com> <4h9ml2$gub@solutions.solon.com> <4hladl$4cr@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: schwarz@a2.complang.tuwien.ac.at (Konrad Schwarz)
Newsgroups: comp.lang.c.moderated
Subject: Re: use of the break statement
Date: 8 Mar 1996 17:05:24 -0600
Organization: TU Wien
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4hqefk$1p5@solutions.solon.com>
References: <4gfcl7$2ls@solutions.solon.com> <4gnbcp$biq@solutions.solon.com> <4h81gh$aql@solutions.solon.com> <4h9ml2$gub@solutions.solon.com> <4hladl$4cr@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com