Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site mcvax.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!mcvax!steven From: steven@mcvax.UUCP (Steven Pemberton) Newsgroups: net.lang Subject: Re: Teaching students with GOTO Message-ID: <5806@mcvax.UUCP> Date: Sun, 13-May-84 14:45:52 EDT Article-I.D.: mcvax.5806 Posted: Sun May 13 14:45:52 1984 Date-Received: Tue, 15-May-84 02:04:07 EDT References: <428@opus.UUCP> <903@dciem.UUCP> <484@sequent.UUCP> Organization: CWI, Amsterdam Lines: 10 >But I pity his students: his sample [Fortran] programs >were about 1/5 to 1/4 "goto"s. I knew a lecturer who used to teach Algol 60 in the same way: for the then part of an if statement he would only use a goto. When his department decided to move to Pascal, he even did the same there! He would teach his students first to declare a healthy supply of labels, and then program the algorithm. He was very upset the day he discovered that the compiler generated a jump over the then part (thus a jump over a jump) rather than negating the test and directly jumping to the destination.