Re:Python programming is drowning in red tape
by jordic on Wednesday April 15, 2020 @01:53AM
(#22874970)
And what's the problem on having some type hints on some func signatures?) You can read python exactly the same way (with and without type hints)....
Re:Python programming is drowning in red tape
by tonyedgecombe on Wednesday April 15, 2020 @02:02AM
(#22875023)
It's just one more thing you have to get to learn.
I have the same problem with classes in JavaScript. You can't ignore them and stick to prototypes nor ignore prototypes and stick to classes. What should have been a simplification has turned out to make things more complex.
Re:Python programming is drowning in red tape
by oefrha on Wednesday April 15, 2020 @07:36AM
(#22876569)
Unlike ES6 classes, you absolutely can ignore type hints (and they're easy to ignore). In fact they're basically inline comments, and the interpreter ignores them too.
Re:Python programming is drowning in red tape
by jordic on Wednesday April 15, 2020 @08:50AM
(#22877086)
Anyway es6 classes it's just a proper way of doing Oop in js.. the prototypal thing it's so ugly...
Re:Python programming is drowning in red tape
by joshuaavalon on Wednesday April 15, 2020 @02:34AM
(#22875172)
The problem for me is other people not using it. When I call another library, there is no type hint and the documentation is poor.
You can only read the code and guess the type yourself.
Re:Python programming is drowning in red tape
by LeonidasXIV on Wednesday April 15, 2020 @07:32AM
(#22876550)
So just like any other dynamically typed language?
The problem is that other people might use those features and you also might have to read the code created by those people.