Refactoring?

The Knuth article is a good place to start.

BTW, the last quoted paragraph is not my text; I assume that it's Gil's.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Steve Smith [[email protected]]
Sent: Sunday, September 25, 2022 10:13 PM
To: [email protected]
Subject: Re: Assembler courses

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 <
[email protected]> 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 [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to