[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why no numbers allowed in variables?
From: |
J Martin Rushton |
Subject: |
Re: Why no numbers allowed in variables? |
Date: |
Tue, 2 Oct 2018 23:31:03 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 02/10/18 23:25, David Kastrup wrote:
> J Martin Rushton <address@hidden> writes:
>
>> This discussion is strangely familiar. As one who learnt on FORTRAN IV
>> many years ago, I'm used to seeing that:
>>
>> READ INPUT TAPE 5, 501, IA, IB, IC
>> and
>> READINPUTTAPE5,501,IA,IB,IC
>> or even
>> RE ADIN PUTTA PE5,5 01,I A,I B,I C
>>
>> are the same. I'm sure there were those back in the late '50s arguing
>> over the use of spaces and numbers within variables.
>>
>> (OT) I've even seen code which intentionally mangled FORTRAN source to
>> make it unreadable, like the third example above.
>
> That's more like making spaces not have any lexical meaning, ever.
> Basically, if it cannot be part of an identifier, it also cannot
> separate them. Also you have to be aware that a fresh punch card is
> both empty and contains 80 spaces. Basically spaces are not even
> recognizable characters in the original typical Fortran input medium.
>
> For TeX it was more the decision to be able to write things like
>
> \count5=7
>
> and LilyPond input is very very loosely modeled after that (via MusicTeX
> and MPP).
>
Quite correct. Early FORTRAN compilers eliminated all spaces (other
than those in Hollerith strings) and then parsed the resultant mess.
--
J Martin Rushton MBCS
signature.asc
Description: OpenPGP digital signature
- Re: Why no numbers allowed in variables?, (continued)
- Re: Why no numbers allowed in variables?, Kieren MacMillan, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, Kieren MacMillan, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, Kieren MacMillan, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, Thomas Morley, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, J Martin Rushton, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?,
J Martin Rushton <=
- Re: Why no numbers allowed in variables?, Thomas Morley, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, Thomas Morley, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/03
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, Kieren MacMillan, 2018/10/02
- Re: Why no numbers allowed in variables?, David Kastrup, 2018/10/02
- Re: Why no numbers allowed in variables?, Maarten Deen, 2018/10/03