comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: an infinate loop
Date: Tue, 17 Jul 2001 13:56:24 -0400
Date: 2001-07-17T17:56:26+00:00	[thread overview]
Message-ID: <9j1u8a$863$1@nh.pace.co.uk> (raw)
In-Reply-To: 3B546F9D.4030809@gmx.net

I have not used a goto in any language since at least 1983 - maybe longer,
but prior to that I had a job maintaining ancient Cobol code and I might
have actually used a goto to be consistent with some existing code. I'm
aware of how little necessity there is for the goto as a result of that
practical experience. :-)

I know arguments were made for including the goto in Ada along a variety of
lines. Some of it had to do with automatic translation of existing things
being more difficult if there was no goto. Some of it was undoubtedly to
make it appeal to people who didn't know how to live without one. Some of it
was, as I said, because there was evidence indicating that goto's got put
into languages that tried to leave them out - sooner or later people come up
with some practical consideration that makes it worth having them in the
language. Whatever the reasons, I have no objections to the presence of a
goto in Ada - I just believe they should be used sparingly, if at all...

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Matthias Kretschmer" <McCratch@gmx.net> wrote in message
news:3B546F9D.4030809@gmx.net...
>
>
> It is possible to program without using an goto at all (see W.A.Wulf:
> "Programming without goto" or D.E.Knuth and R.W.Floyd (1971): "Notes on
> avoiding goto statement") - and this should be the right way. Jumps/goto
> make the whole thing very unreadable I think and it is difficult to
> prove the correctness. Proving the correctness of
> algorithms/subprograms/programs is maybe unusual (or done by only a
> few), but if you are sure that your way of doing it, is the right way,
> it should be easy to prove. Unproven code just waits for its
counterexample.
>
> Once someone involved in the Ada design in the beginnig told me, that
> the goto statement was mainly implemented to make the language more
> attractive to people who do not want to live without.
>





  reply	other threads:[~2001-07-17 17:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-12 21:43 an infinate loop Beau
2001-07-13  3:21 ` DuckE
2001-07-13 13:57 ` Ted Dennison
2001-07-13 17:01   ` Jeffrey Carter
2001-07-13 18:11     ` Ted Dennison
2001-07-13 22:26       ` Jeffrey Carter
2001-07-16 15:14         ` Marin David Condic
2001-07-17 17:02           ` Matthias Kretschmer
2001-07-17 17:56             ` Marin David Condic [this message]
2001-07-17 19:25               ` Ted Dennison
2001-07-19 11:38                 ` Matthias Kretschmer
2001-07-19 14:28                   ` Ted Dennison
2001-07-17 17:13           ` Warren W. Gay VE3WWG
2001-07-14 23:41       ` Darren New
2001-07-16 13:24         ` Ted Dennison
2001-07-16 15:19           ` Marin David Condic
2001-07-13 20:40     ` chris.danx
2001-07-13 22:29       ` Jeffrey Carter
2001-07-14 14:00         ` Robert Dewar
2001-07-14 16:17           ` Negative Logic (was: Re: an infinate loop) Jeffrey Carter
2001-07-17  4:06             ` Robert Dewar
2001-07-17  4:23             ` Robert Dewar
2001-07-16  9:26           ` an infinate loop Philip Anderson
2001-07-19  9:32             ` an infinite [was: infinate] loop AG
2001-07-15 21:18   ` an infinate loop Matthias Kretschmer
2001-07-16 21:59   ` Stephen Leake
2001-07-13 16:48 ` C. Bauman
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox