Hacker News new | ask | show | jobs
by _as_text 484 days ago
know what this will be about without reading

Python 3.12-style type annnotations are a good example imo, no one uses the type statement because dataset inertia

2 comments

Usually, i remember that type annotations exist when I'm debugging after things aren't working. If you look at the python code that I've written, type annotations are a sure sign that "there was a problem here". it's like a scar on repaired code
Type annotations by themselves, are little more than a comment
They're more than that as they allow for easy consistency checking of types across calls. This makes all the difference.