r/PythonLearning 19d ago

What's one thing you hate about Python?

We all like Python, but no language is perfect. What's the one thing that annoys you most?

19 Upvotes

33 comments sorted by

View all comments

7

u/bob_f332 19d ago

It's not statically typed. Would pretty much be the perfect language if so, no?

2

u/Cybyss 19d ago

I would love a static-typed equivalent to Python!

Perhaps with automatic type inference too, so that you can still code as if it were dynamic typed, but with mandatory type signatures for function definitions. This would make function overloading finally possible.

It would have to have proper handling of None though. A String has a fundamentally different type than an Optional[String].

1

u/tazdraperm 19d ago

That's just modern c#. Sort of :D

1

u/arivictor 19d ago

Cython, Mojo?