I've been at shops that assign labels win ascending order. A few months of 
maintenance and they're out of order. Even when they are in order they're 
harder to understand than mnemonic labels.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Assembler List <[email protected]> on behalf 
of Robin Vowels <[email protected]>
Sent: Saturday, February 17, 2018 10:31 AM
To: [email protected]
Subject: Re: Labels

From: "Paul Gilmartin" <[email protected]>
Sent: Saturday, February 17, 2018 2:15 PM


> On 2018-02-16, at 20:03:57, Robin Vowels wrote:
>
>> From: "Jon Perryman"
>> Sent: Friday, February 16, 2018 4:44 PM
>>
>>> Seymour is talking about maintainable large amounts of code
>>> should have at least alphanumeric labels. Numeric labels can be confusing
>>> unless you have a really good numbering scheme.
>>
>> It still doesn't matter whether labels are numeric or alphanumeric,
>> nor whether programs are large or small.
>>
> With suitably unrestricted identifier length, alphanumeric labels
> have more evocative value than numbers.

With names, you don't know where to look (up or down).

With integers, provided that they are arranged in increasing order,
you know where to look.

>>> I suspect most programmers would not use numeric labels unless forced.
>>
>> FORTRAN has numeric labels.  Large or small programs.
>>
> And I would use FORTRAN if forced.  Perhaps it's better than
> a half-century ago.
>
> Do you collect your FORMAT statements and situate them at the
> end of the program, or code them proximate to the WRITEs?  (Not
> relevant to the numeric vs. alphanumeric choice)

Rarely do I use FORMAT statements in any language.
If I do use them, I put them adjacent to the statement
that requires it.

---
This email has been checked for viruses by Avast antivirus software.
https://secure-web.cisco.com/11Vh_GdEyOK-9-BVnSSWh2X5qxoQIghI9q06_Z_Z3p1PwNMxK7FGYi_uaph1fIDbl2q5hs47x2xXSKvC3NAC5rxGeW_5ZJ1vDwOjBatrmWhYqjuUzxkB1bGKJPwW24f1j_n4LvjEiAobHlEORcVhzFVOHI342Kh3dZ0fRd82EZcP6T7ZReMu2C1N7r-ID_AwvmQgvqtQXlnfpTzeukrj43nZTOv2lsxdnZmKDIpnVvmVv4R0tPtFCa0Sxrk6lcfp2vXhea3QsZcE2fzNi4T761f1TReOjnG3aZL8WEOFxXu3Em7oKVao5iXW_ph6xvs19cTOkl1wx3T61TnsfzaK1fsJg2HMCE5J1oPj5Gt1kP5cSYBdWpyuPafUBBw07sh4Hsa2ItkDqloBU-ArnpLkN9ELw1RkRPLgqm4dfaFjXJ6AlJ3szxk7Qca74DWLP7xty/https%3A%2F%2Fwww.avast.com%2Fantivirus

Reply via email to