Sujet : Re: Python (was Re: I did not inhale)
De : Muttley (at) *nospam* dastardlyhq.com
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 22. Aug 2024, 09:21:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va6se9$cb8e$1@dont-email.me>
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
On Thu, 22 Aug 2024 10:10:18 +0200
David Brown <
david.brown@hesbynett.no> boringly babbled:
On 22/08/2024 09:42, Muttley@dastardlyhq.com wrote:
Yes, its ultimately subjective. The reasons I don't like it are that I can't
stand dynamic typing in supposed "proper" languages and the syntatically
meaningful whitespace nonsense they took from Occam really grinds my gears.
In my current job I'm forced to use it but I'd never do it out of choice.
>
Dynamic typing has its advantages and disadvantages. You do lose a lot
of human checking and static checking when you have dynamic typing, but
you gain flexibility. Have you tried using type annotations in Python?
No, i'll look into it, thanks.
I am a big fan of clear and consistent layout and indentation, which is
forced on you by Python (and Occam), but I too prefer explicit blocking.
It's harder to get things wrong with explicit blocking, and you are
Indeed. You delete a bracket by mistake and it won't compile, end of. In
Python you can delete a spaces/tabs by mistake and if its at the end of the
block the thing could still run.
never faced with space vs. tab conflicts causing semantic changes to the
code.
Yes, this is a royal PITA. I use tabs as in vim I can instantly change the
indentation using "set ts=". With spaces its fixed short of dicking about
with macros.
IMO its fine for small scripts up to maybe a few hundred lines. Beyond that
no.
>
Oh, it's fine for /far/ bigger programs than that. But it is excellent
As you said, opinions may differ.