Sujet : Re: The joy of FORTRAN
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 18. Oct 2024, 05:35:09
Autres entêtes
Message-ID : <lne6rsFh72qU1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
On Thu, 17 Oct 2024 23:50:46 -0400,
186282@ud0s4.net wrote:
The need for it has been 'depricated'. However it was one of the more
confusing bits of the language. You can still see vestiges of it in
some Python, even Pascal, fine-formatting commands however.
Our source tree still has vestiges of Fortran that go back more than 20
years and are strictly f77.
recnum = 1
read(adrich,15,rec=recnum) totrec
15 format(i10)
100 if(recnum.gt.totrec) goto 500
read(adrich,105,rec=recnum+1) ch
105 format(1a1)
It's been too long and I don't have a clue. f-strings are the best thing
that happened to Python recently.
f"{item.artist:30.30} {item.track:40.40} {item.time / 60000:.2f}"
It's very similar to C# and f" makes more sense than $".