Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!ogicse!plains!tsmith From: tsmith@plains.NoDak.edu (Timothy Lyle Smith) Newsgroups: comp.lang.pascal Subject: Re: Gotos are ok (Was Re: IMPLEMENT GOTO ACROSS MODULES IN TURBO PASCAL??) Message-ID: <7612@plains.NoDak.edu> Date: 17 Jan 91 18:48:46 GMT References: <1991Jan10.031015.15282@cs.mcgill.ca> <1991Jan10.122222.1013@uwasa.fi> <1991Jan16.005523.28337@syacus.acus.oz> Organization: North Dakota State University, Fargo Lines: 111 In article <1991Jan16.005523.28337@syacus.acus.oz> ian@syacus.acus.oz (Ian Joyner) writes: >Prof. Timo Salmi writes- > >>No gotos is just a mumbo jumbo myth by programming purists. >>Of course it is often desirable for the sake of clarity to avoid >>gotos, but this stigma that has been ingrained and incantated to by >>the self-chosen guards of programming purity is ridiculous. Welcome >>to the real world where programming is needed because something >>needs to be performed, and where the format of code is secondary. >>Don't confuse the ends and means. I don't believe that the format of the code is secondary, it should give some indication of the function of the code. Granted that this is not always possible for a given language. If you can figure out how to do something in a sloppy manner then there is most likely another way to do it which not so sloppy. The other way of writing it should not be so difficult as you already have a solution to the problem. > > >Sure gotos work very well. The problem is they are too powerful, and thus >subject to undisciplined use. Last year I was working in a language with >the only control structures being - > >if >and >goto