home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: GOTO, was: Tiny proposal for na
- Message-ID: <1992Aug27.181245.10606@taumet.com>
- Organization: TauMetric Corporation
- References: <714668024@thor> <6800007@tisdec.tis.tandy.com> <1992Aug26.130335.26725@hemlock.cray.com>
- Date: Thu, 27 Aug 1992 18:12:45 GMT
- Lines: 35
-
- dsf@cray.com (Dan Frankowski) writes:
-
- >In article <6800007@tisdec.tis.tandy.com> kevinl@tisdec.tis.tandy.com writes:
-
- >> For experienced programmers, the goto is a legitamite tactic.
- >>There may not be any cases where a goto is absolutly necessary (I've
- >>heard that there are some, but I have yet to see any), ..
-
- >I thought that one of the triumphs of the Structured Programming camp
- >was an honest-to-goodness proof that any code using gotos could be
- >replaced by structured constructs and state variables.
-
- It is a common misconception that this was a triumph for structured
- programming.
-
- The paper: Bohm and Jacopini, "Flow diagrams, Turning machines, and
- languages with only two formulation rules", Communications of the ACM,
- vol 9 no 5, May 1966, p 366-371.
-
- They provide a mathematical proof that any program with goto's can be
- transformed into one without them. The program transformed by their
- method is not necessarily a good one, or even understandable. This
- result does not provide a foundation for structured programming, except
- in the very limited sense of showing that programming does not
- absolutely require goto's.
-
- Structured programming rather provides a framework for containing the
- complexity of programs. You can write a structured program in assembler.
- Languages supporting structured programming provide alternatives to
- the goto which directly implement structured programming concepts,
- reducing the need for goto's.
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
- Vice Chair, ANSI C++ Committee, X3J16
-