SELECT in PL/I has two forms: one provides a variable matched against the 
various WHEN clauses and one in which each WHEN has a boolean (well, BIT(1)) 
expression. REXX has only the former, whichis equivalent to IF/ELSEIF/ELSE.


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

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Paul Gilmartin [[email protected]]
Sent: Wednesday, March 29, 2023 9:01 AM
To: [email protected]
Subject: Re: Stop the ragging on COBOL please [was: RE: ASM call by value]

On Wed, 29 Mar 2023 14:16:56 +0000, Robert Prins wrote:

>> w    ..., and IBM rejected the original SHARE
>> requirement for a CASE statement.
>
>But the SELECT statement that they added (before my time) later beats the
>crap out of CASE in C & Pascal.
>
Pascal CASE may have a performance advantage if it can be
implemented with an indexed branch table.  But how much does
it matter?

Isn't SELECT (I know Rexx, not PL/I) just an ELSEIF chain?

Too many languages lack ELSEIF and strong closure.  Fie on
the danglig ELSE!

--
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