3 ms·
Type annotations... help. They're not great, but they're better than nothing.
by Yoric 4y ago
Type annotations... help. They're not great, but they're better than nothing.
- inglor_cz 4y agoPyCharm handles them really well and I am happy that I started with Python 3.11.
- Yoric 4y agoI should elaborate that when I write "better than nothing", I'm someone with a background in strongly-typed programming languages (OCaml, Haskell, Rust) and even more strongly-typed programming languages (Idris, Coq, Twelf). It's unlikely that Python type annotations will ever be able to achieve something comparable to what many of these languages had during the 90s. They're useful, but if you need strong static safety guarantees, Python is the wrong tool for the task.