I seem to remember that most of the perceived weaknesses in COBOL were
addressed a long time ago.

But some old tales just won't die. Back when JSP meant Jackson Structured,
I remember being told that PL/I supported selection directly with 'SELECT',
while in COBOL people were using ALTER with GOTO (oof!).

It may have been true, briefly, but it seems COBOL caught up in most
respects reasonably quickly.

Roops


On Sat, 1 Apr 2023, 02:24 Frank Swarbrick, <frank.swarbr...@outlook.com>
wrote:

> COBOL:
>
> EVALUATE A = 1
> WHEN TRUE [...]
> WHEN FALSE [...]
> END-EVALUATE
>
> (WHEN FALSE could be WHEN OTHER in this case.)
>
> Not many people would use this over IF ELSE, but it's available.
>
> There's also "EVALUATE TRUE" where each WHEN is a full evaluation,
> eliminating any need for IF ELSE/IF ELSE/IF ELSE.
>
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

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