lol... We definitely need a guide to refracturing code.

More seriously, a decent commentary on how to use goto "correctly" would be
a nice thing to see.  In my opinion, using it like REXX intends the signal
statement to be used is fair.  I can't at the moment recall much else that
I'd normally write.  Of course, signal in REXX is often as horribly misused
as any regular goto.

sas


On Sun, Sep 25, 2022 at 9:44 PM Paul Gilmartin <
0000042bfe9c879d-dmarc-requ...@listserv.ua.edu> wrote:

> On Mon, 26 Sep 2022 01:21:03 +0000, Seymour J  wrote:
>
> >As a companion to "Structured Programming with go to Statements" by
> DONALD E. KNUTH, I see a great need for "Spaghetti Code Without go to
> Statements". BTDT,GTS.
>
> That's almost trivial.  Refracture any spaghetti code as a single DO
> FOREVER
> containing a SELECT in which each WHEN clause assigns to a variable used
> to indicate the next WHEN.
>
> --
> gil
>
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to