home *** CD-ROM | disk | FTP | other *** search
- From: kevinl@tisdec.tis.tandy.com
- Date: 25 Aug 92 08:32 CDT
- Newsgroups: comp.lang.c++
- Subject: Re: GOTO, was: Tiny proposal for na
- Message-ID: <6800007@tisdec.tis.tandy.com>
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!convex!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
- Nf-ID: #R:thor:714668024:tisdec.tis.tandy.com:6800007:000:819
- Nf-From: tisdec.tis.tandy.com!kevinl Aug 25 08:32:00 1992
- References: <714668024@thor>
- Lines: 16
-
-
- I have to paritally disagree. Everytime you add a flag variable,
- you are doubling the number of states for your program. The more states,
- the more possible paths, and the more paths, the more possible unforseen
- errors (if the paths are not anticipated and tested--something that is
- very hard to do).
- 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), but putting
- a goto instead of, say, another function call in a path that is called
- 10,000 times each time the program is run, saves massive amounts of
- time.
- I agree that programs are generally easier to understand and
- debug when there are no goto statements, but, if well documented
- gotos are just another structured technique.
-
-