On 2024-04-24 00:41, Paul Gilmartin wrote:
On Tue, 23 Apr 2024 14:07:05 +0000, Schmitt, Michael wrote:

Be sparse and elegant but not rococo.  I prefer:
    'A' B
to (the equivalent):
    'A ' || B
The latter seems to cater to the expectations of PL/I or some other language.

Catenation with || is PL/I and other languages.

But I confess to an obsession with performance. Function call/return is
costly,

Catenation can be costly, because either or both operands need to be moved.
In XPL, both operands are moved, except when the first operand
is at the top of the free area.

so I'll use:
    PARSE VAR A . . X .
rather than (the sparser?):
    X = SUBWORD( A, 3 )

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