Path: utzoo!attcan!uunet!mcvax!hp4nl!mhres!jv From: jv@mh.nl (Johan Vromans) Newsgroups: comp.misc Subject: Re: Structured Programming (shading into Computer Folklore) Message-ID: Date: 4 Mar 89 21:03:26 GMT References: <16129@mimsy.UUCP> <447@lakart.UUCP> <26640@apple.Apple.COM> Sender: jv@mhres.mh.nl Organization: Multihouse Gouda, the Netherlands Lines: 26 In-reply-to: desnoyer@Apple.COM's message of 2 Mar 89 18:13:09 GMT In article <447@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes: >Is there any _REAL_ difference between: > > while (a < 25) > { > ..... > } >AND: >100 REM start "while A < 25" loop >110 if A >= 25 then goto 200 >120 ..... >190 goto 110 >200 REM exit "while A < 25" loop > YES. The main difference is that in the BASIC program the "descriptive comments" and the program semantics are not related. You may change the semantics, or the comment, or both, depending on discipline and haste. (Is your boss pushing you? Don't change comments - it only takes more time.) BUT it helps to have comments like the one shown above when trying to figure out program semantics. If they are consistent. -- Johan Vromans jv@mh.nl via european backbone (mcvax) Multihouse [A-Za-z ]* [NB]V uucp: ..!mcvax!mh.nl!jv Gouda - The Netherlands phone: +31 1820 62944