Sujet : Re: The joy of FORTRAN
De : c186282 (at) *nospam* nnada.net (c186282)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 05. Mar 2025, 05:10:10
Autres entêtes
Message-ID : <3LednYUlW_M7U1r6nZ2dnZfqnPqdnZ2d@giganews.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 3/4/25 4:18 AM, The Natural Philosopher wrote:
On 04/03/2025 04:00, c186282 wrote:
On 3/3/25 3:17 PM, The Natural Philosopher wrote:
On 03/03/2025 19:19, rbowman wrote:
On Mon, 3 Mar 2025 15:24:04 +0000, The Natural Philosopher wrote:
>
On 03/03/2025 10:05, Niklas Karlsson wrote:
Some would probably get on your case for being profligate with vertical
space... but honestly, it doesn't much matter with the kind of screen
real estate we have these days. I do agree that your style has
readability benefits.
>
Yes. Back in the day when I debugged with 80 column dot matrix
printouts, it got messy.
To day with collapsible blocks on a gui it's a lot easier
>
I still prefer statements that don't exceed 80 columns.
So do I but it gets unavoidable when toy are passing sixty plus variables to a function.
>
Ummm ... THAT nasty ... create a struct and pass one
pointer instead :-)
>
fprintf/sprintf doesn't take a structure as an argument.
What ? :-) In Python you can print a whole list ... !
Anyway, the idea here was to prevent the need to put 60
individual params into one or more function calls. Each
function can take WHAT IT NEEDS out of that big pointed-to
struct. The alt is making everything global - works but
is 'poor practice'.
In any case, param-passing always has a certain amount
of ugliness. The other part of the thread - numeric
conversions - is similar, but WORSE. It's just always
kludgy interconverting semi-incompatible number systems.
Unless the whole world adopts ONE way, it's gonna remain
kludgy/inefficient/bulky.
But hey, doesn't everybody perfectly understand that
the current time is "1741147665.2675548" ??? "Meet
me at Starbucks at 1741157665.12345678 babe !" :-)