News for hackers. Stuff that matters.
Re:Python’s “type hints” are a bit of a disappointment to me by jsmeaton on Thursday April 21, 2022 @11:48PM (#31117975)
I really like C# and have done a bunch of work with it in the past! But I also love Python for reasons other than just static vs dynamic typing.

To be honest, I think a lot of Python [or arbitrary dynamic language] developers can be quite sloppy, throwing dictionaries around everywhere because it's easy and leading to some really hard to read code. Type hints guide people away from that sloppiness while still allowing access to most of the features that make dynamic languages so useful and expressive.

It's a best-of-both-worlds situation and I'm here for it.

There are no comments on this comment yet.