I frequently use single letter control variables in short DO loops. But my primary criterion is legibility.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Bruce Hewson <00000499d3d5e892-dmarc-requ...@listserv.ua.edu> Sent: Sunday, April 21, 2024 12:58 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: REXX vs other languages WAS: Rexx numeric digits and scientific notation question Hello Bob, I use "cnt" for my loop counters. I stopped using FORTRAN style single character variable names when I started coding in REXX. Except I do use them on occasion for building large stem variable lists. example:- i=i+1;jcl.i="//BRUCESMP JOB (1234546),'Bruce SMP jobn'," i=i+1;jcl.i="// CLASS=A, " i=i+1;jcl.i="// MSGCLASS=X, " i=i+1;jcl.i="// MSGLEVEL=(1,1), " i=i+1;jcl.i="// NOTIFY=&SYSUID " i=i+1;jcl.i="//* " So many ways to use REXX. Regards Bruce On Sat, 20 Apr 2024 11:08:03 -0400, Bob Bridges <robhbrid...@gmail.com> wrote: >It was while I was coding in REXX that I tried abutting a variable named 'x' >with another string, and couldn't figure out why the program behaved as it >did. Eventually figured out I had inadvertently created a hex constant. >Maybe as an overreaction, I have never since used one-character variable >names, always two or more. (What do I use for loop counters?, you ask. I use >'j' plus another letter; 'jr' for records, for example, 'jd' for days >whatever. More obvious would have been 'i', but there are too many two-letter >reserved words even in REXX that start with 'i'.) > >--- >Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313 > ---------------------------------------------------------------------- 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