jlg@lanl.ARPA (Jim Giles) (04/02/86)
In article <6925@cca.UUCP> g-rh@cca.UUCP (Richard Harter) writes: > Au contraire, "structured programming" == GOTOless programming. Depends on which definition of 'structured programming' you use. There is STRUCTURED PROGRAMMING, which is a religion which worships at the alter of the god NOGOTO (These are capitalized because, well, that's the way religous people think). Then, there is structured programming, which is a programming discipline use to design, layout, and implement programs and is completely independent of the syntax of the language used. Anyone that doesn't use structured programming should probably worship STRUCTURED PROGRAMMING - GOTOs really are dangerous to such people. On the other hand, if you DO use structured programming, then GOTOs are not any more dangerous than any other tool. J. Giles Los Alamos
andrew@cs.paisley.ac.uk (Andrew Fleming) (04/11/86)
At present I am an undergraduate, from first year onwards certain lecturers here, took the view that a program with a GOTO in it, was a badly written program . After being out on industrial placement, I formed my own view , which is GOTO's in themselves do not lead to badly structured program, bad programmers write badly structured programs. In some cases use of the GOTO is quite simplely the best way of exiting from a mass of condition loops e.g whiles ... do,repeat..until where you want to respond to something that is time-dependant, and cannot afford to wait to set exit flags and the like !! The opinions above are my own, even person is entitled to their opinion without comment from persons holding a different opinion. What I mean is I am making a comment, nothing else.
kludge@gitpyr.UUCP (Scott Dorsey) (04/14/86)
> > GOTO's in themselves do not lead to badly structured program, > bad programmers write badly structured programs. In some As Prof. Baird says in his second quarter programming class, "Up until now, you have been told never to use the Goto. I use it. I use a revolver too, but I don't give it to my children." -- ------- Disclaimer: Everything I say is probably a trademark of someone. But don't worry, I probably don't know what I'm talking about. Scott Dorsey " If value corrupts kaptain_kludge then absolute value corrupts absolutely" ICS Programming Lab (Where old terminals go to die), Rich 110, Georgia Institute of Technology, Box 36681, Atlanta, Georgia 30332 ...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!kludge