home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!iphasew!igor!thor!rmartin
- From: rmartin@thor.Rational.COM (Bob Martin)
- Newsgroups: comp.lang.c++
- Subject: Re: GOTO, was: Tiny proposal for na
- Message-ID: <rmartin.716168766@thor>
- Date: 10 Sep 92 23:46:06 GMT
- References: <2318@devnull.mpd.tandem.com> <rmartin.715001372@thor> <4192@papaya.bbn.com> <1992Sep2.131733.20676@terminator.cc.umich.edu> <rmartin.715526582@thor> <1992Sep9.205014.24925@mksol.dseg.ti.com>
- Sender: news@Rational.COM
- Lines: 35
-
- mccall@mksol.dseg.ti.com (fred j mccall 575-3539) writes:
-
- |In <rmartin.715526582@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
-
-
- |>Now, granted, there are some cases where the rules of Structure
- |>Programming do not create the most efficient possible code. And in
- |>cases where efficiency is of primary importance, then the rules should
- |>be violated, without regret.
-
- |There are also places where the rules of Structured Programming do not
- |create the most READABLE or MAINTAINABLE code, either. In these
- |cases, as well, they should be jettisoned. This is the problem with
- |having a set of 'usual rules'. Meeting the rules becomes more
- |important to some people than meeting the goals that the rules are
- |supposed to be helping you with.
-
- Readability is subjective. I find code without gotos more readable
- than code with gotos. Others, like you perhaps, find gotos to be more
- readable in certain circumstances. Life would be boring if we were
- all the same.
-
- However, maintainability is much less subjective. Gotos create
- dependencies between blocks which complicate their flow patterns.
- This makes them intriniscally more difficult to maintain. Gotos also
- tend to be used to merge many different control flows into one. This
- is also difficult to maintain since, as time wears on, exceptions
- accumulate in the merged flows.
-
-
- --
- Robert Martin Training courses offered in:
- R. C. M. Consulting Object Oriented Analysis
- 2080 Cranbrook Rd. Object Oriented Design
- Green Oaks, Il 60048 (708) 918-1004 C++
-