3 ms·
I used to love python. It made me productive. Until it introduced the haphazard type system. Now I need to import types in every file, use IF to guard it in CI
by nine_zeros 3y ago
I used to love python. It made me productive.
Until it introduced the haphazard type system. Now I need to import types in every file, use IF to guard it in CI in every file, and use a powerful IDE to be able to use the benefits of typing.
- kzrdude 3y agotyping brings me no happiness either, because it's a lot of work without being complete anyway. Annotations that are not checked vs actual behaviour at runtime can always, by the laws of programming, be subtly incorrect. I still use python. The recently introduced match statement is a great addition, IMO.
- notatallshaw 3y ago> Now I need You don't need to do anything, you can ignore all type hints > use IF to guard it in CI in every file Are you talking about "if TYPE_CHECKING:"? Your other option is to put "from __future__ import annotations" at the top of the file, or wait for Python 3.13 when PEP 649 lands and type annotations become lazily evaluated.