HP3000-L Archives

March 2004, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Fri, 12 Mar 2004 10:39:14 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (11 lines)
Tracy Pierce wrote (among other things):
>...you can't make spaghetti code without goto.

Oh yes you can!  I have seen horribly confusing code that didn't (overtly) use GOTOs.  I say "overtly" because as I and others have pointed out, it's possible to use a PERFORM command to accomplish a GOTO.  As has also been pointed out, the PERFORM...THRU is also an excellent tool for creating spaghetti code.  If GOTO-less code is written WELL, it is indeed free of spaghetti and other forms of confusion, but the idea that removal of GOTOs alone is sufficient to accomplish that is a notion with which I can't agree.

Regards,
John Clogg

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2