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.
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.