Jeremy, you and I agree on a lot of things, but nah, this one isn't for me;
it's 'way too much like work.  I'm much more likely to do it the other way:

  msg="You've misdefined '"xyz''' as "'xyz'".'

It may take me a couple tries to get it right, but after that I'm never
going to look at it again so I don't feel the need to do all the extra
typing in order to make it obvious to the passing eye.

---
Bob Bridges, [email protected], cell 336 382-7313

/* Back in the old days, most families were close-knit.  Grown children and
their parents continued to live together, under the same roof, sometimes in
the same small, crowded room, year in and year out, until they died,
frequently by strangulation.  -Dave Barry */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Jeremy Nicoll
Sent: Saturday, June 15, 2024 05:37

Many of the literal strings in my Rexx programs are parts of error messages
etc and lots of those have single quotes in them, mostly as apostrophes ...
so I enclose these texts in double quotes.

I tend therefore to use double quotes nearly all the time.

When I do need to build strings with both in them I tend to do it via two
vars

  dq = '"'  ;   sq = "'"

and end up with lines like

  msg = "You've misdefined" sq || "xyz" || sq "as" dq || xyz || dq || "."

--- On Sat, 15 Jun 2024, at 03:00, Bob Bridges wrote:
> Now I find myself using double-quotes reflexively in REXX, too
> - very much to my dismay, because I'm with you, why use two
> fingers where one will do?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to