News for hackers. Stuff that matters.
Re:Python’s “type hints” are a bit of a disappointment to me by comex on Thursday April 21, 2022 @08:55PM (#31117012)
It is meaningfully different because, as the article says, comments are known to not be machine verified and thus to potentially be wrong. With type hints, they’re usually verified, but not always, so you’re more likely to trust them and get a nasty surprise when they turn out to be wrong.

However, there are other aspects to the article’s argument, such as the fact that it’s easy to end up with type annotations going silently unenforced even if you do run the checker.

There are no comments on this comment yet.