Yes, I do too.  We had this conversation a few years ago, probably in the
TSO-REXX listserv, and there were advocates on both sides.  But I'm firmly
in the your camp on this one:  The END statement is (in my mind)
subordinate, and therefore indented.

---
Bob Bridges, [email protected], cell 336 382-7313

/* As far as I can tell, our second basewoman is a pretty good baseball
player, better than I am, anyway, but there's no way to know for sure
because if the ball gets anywhere near her, a male comes barging over from,
say, right field, to deal with it  They know, deep in their souls, that if
she had to choose between catching a fly ball and saving an infant's life,
she would probably elect to save the infant's life, without even considering
whether there were men on base.  -Dave Barry, 1985 */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Seymour J Metz
Sent: Friday, June 18, 2021 12:12

I agree, although if I expect to be adding code in the future then I'll
write

   if fx then do
      ntim=ntim+1
      end
   else do
      nres=nres+1
      end

Note that I don't like, and don't use in REXX scripts, the C indentation
conventions; I indent END.

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of
Bob Bridges [[email protected]]
Sent: Friday, June 18, 2021 11:57 AM

Ack!  To my mind

  if fx then
    do
      ntim=ntim+1
    end
  else
    do
      nres=nres+1
    end

...is much harder to read than

  if fx then ntim=ntim+1
        else nres=nres+1

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Crawford, Robert C.
Sent: Wednesday, June 16, 2021 09:23

It's a small thing, but I now longer try to cram as much code into line as I
can.  Now I put spaces between operators and variables and after commas.  I
also put the clauses following "THEN" and "ELSE" on another line.

Oh, and I used to this:
LOOP      MVC   HERE,THERE

And now do this:
LOOP      DS       0H
                MVC   HERE,THERE

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

Reply via email to