Which code looks cleaner? foo = bar' 'baz, foo = bar baz
When you're building command strings that include spaces, it's more readable if those spaces appear in the source in a manner similar to the generated command. I agree, though, that in things like BNF it's desirable to make spacces an explicit part of the syntax, often in the form of generic white speses, E.g., WS, FWS, CFWS. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Charles Mills [charl...@mcn.org] Sent: Sunday, June 27, 2021 2:01 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Coding for the future I tend to think of the insertion of blanks to be unfortunate. It is great if you are wanting to demonstrate the incredible simplicity of Rexx: Say Hello World But I think if you want a blank between the two halves of the "continued" (in quotations) literal then just code it. Foo = "blah blah_" || , "blah blah" But different strokes for different concatenations. De gustibus ... If you want the code to run on different platforms you might just have to code for that. Would not be the first time for either of us. For most of us. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Seymour J Metz Sent: Sunday, June 27, 2021 10:55 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Coding for the future Yes, but the original code inserted a blank between the two strings; It's the difference between continuing "'foo bar'" and continuing "'foo bar '". Linux on z and z/OS Unix System Services both run on an IBM mainframe but they don't use the same line end convention. What if I want the code to run on multiple platforms? That's an example of why magic numbers are bad. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Charles Mills [charl...@mcn.org] Sent: Sunday, June 27, 2021 1:45 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Coding for the future Right, it makes it into (effectively) on long "continued" (if you will) literal. Effectively, not literally. I was assuming the IBM mainframe as this is the IBMMAIN mailing list. And my point is not the value x'0a' but rather the technique. Substitute whatever magic number is a linefeed on your platform. ---------------------------------------------------------------------- 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