4 ms·
Random question. What is meant to be the benefit of not explicitly writing down types in python? I have used C, C++, GL, and C# most of my career, but recentl
by everyone 6y ago
Random question.
What is meant to be the benefit of not explicitly writing down types in python?
I have used C, C++, GL, and C# most of my career, but recently I have been helping a friend of mine who is learning to code with her python assignments.
Things still have types when the code runs, and type errors can cause all sorts of bugs and problems, but the types are not actually written down by you in the code so u have to remember them all. It just seems to add so much more mental load on the programmer + potential for weird hard to find bugs not being caught by compiler and slipping under the radar.
It seems objectively worse to me. But I assume there is supposed to be some benefit. What is it supposed to be?
PS Bonus comment: whitespace controlling the flow of the program? Lets make characters that are invisible really important to how the program runs. Thats just plain dumb, that could only be the result of a weird fetish of the originator of the language.