Shmuel, when was the last time you needed to process data LIFO? I mean really needed to, not just thought about a hypothetical case to tease the List with. When putting subcommands on the stack, by far the easiest method is to code them in the same order that you would type them. The same order that they will be executed. Easier to write. Easier to comprehend.
Coding subcommands in reverse order just to save one letter in each REXX command would be absurd. . . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 626-302-7535 Office 323-715-0595 Mobile [email protected] -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Shmuel Metz (Seymour J.) Sent: Tuesday, May 19, 2015 8:53 PM To: [email protected] Subject: Re: Did I really need a CLIST??? In <sn1pr0101mb152024b7e4914659296dfec7ce...@sn1pr0101mb1520.prod.exchangelabs.com>, on 05/15/2015 at 04:59 PM, J O Skip Robinson <[email protected]> said: >BTW What advantage would PUSH have over QUEUE? Why would one have an advantage over the other? >I thought the only difference was LIFO vs. FIFO. Yes. >QUEUE is easier to write and comprehend. No and no. PUSH is one letter shorter. Comprehension depends on what you are trying to do; QUEUE is a bear if you need FILO behavior. Don't confuse what is easier in one program for a general rule. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
