It is a capital error to assume unfamiliarity just because sombody eschews a 
language feature. I am a very heavy user of abuttment in REXX. I agree with 
Wayne that there is a good case for using variables in this particular case, 
although I would quarrel with his coice of name. The constructs '"' and "'" can 
be hard to visually distinquisheverywhere they appear. The style

    apost = "'"
    quote = '"'
    ...
    foo = apost|bar||apost

concentrate the problem at the point of definition.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
Paul Gilmartin <0000042bfe9c879d-dmarc-requ...@listserv.ua.edu>
Sent: Saturday, January 6, 2024 10:58 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Style (was: LISTDSI - ...)

On Sat, 6 Jan 2024 14:25:09 +1100, Wayne Bickerdike wrote:

>Quoted strings always gave me grief. I started to use Q='7D'X and
>concatenate my strings this way:
>
>Str = Q||DsNAme||Q.
>LISTDSI(Str)
>
I find that less transparent and surely more verbose than:
    LISTDSI( "'"DsNAme"'" ) or even:
    LISTDSI( ''''DsNAme'''' )

Programmers who eschew concatenation by abuttal are
flaunting their unfamiliarity with the language.

(But how does this play against the wise principle that
self-defining terms should be assigned to symbols
rather than used repeatedly:
    TWO = '2'
    SAY TWO + TWO
?)

--
gil

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