I have to weigh in on this a bit. The issue with GOTOs is not one of performance (as someone else pointed out a loop compiles down to GOTOs at a low level) nor is it an instant sign of sloppy code. The problem is that it is far easier to degrade into sloppy code. In a complex program it can make a program much tougher to read & maintain for any programmer that follows the original author.
Rich Taylor | Senior Programmer/Analyst| VERTIS 250 W. Pratt Street | Baltimore, MD 21201 P 410.361.8688 | F 410.528.0319 [EMAIL PROTECTED] | http://www.vertisinc.com Vertis is the premier provider of targeted advertising, media, and marketing services that drive consumers to marketers more effectively. "The more they complicate the plumbing the easier it is to stop up the drain" - Montgomery Scott NCC-1701 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter D Olson Sent: Wednesday, December 29, 2004 10:12 AM To: [email protected] Subject: RE: [U2] LOOP or GOTO on READNEXT the use of goto's or lack of shouldn't be a judge of sloppy coding . sloppy coding is just sloppy coding. remember one persons slop is another persons pudding :) example 1: y=0 loop readnext z else y = 1 if y = 1 then exit << do stuff >> repeat << more stuff >> vs example 2: 10: readnext claim_id else goto 20 << do stuff >> goto 10 20: << more stuff >> vs example 3 loop readnext claim_id else exit << do stuff >> repeat << more stuff >> LoopForEver This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
