Conversation

python was the first language I learned and most of what I code and I never understood this deep fear of type errors, it's pretty rarely an issue in practice
8
4
104
I find that most problems are type errors. I like static types because I can be lazy and code by numbers.
3
66
Yes. I like to make tons of very narrow purpose-specific types to prevent as many errors as possible.
4
30
I normally use dataclasses with frozen=True but I thought to use a class for the inheritance and to have zero imports.
1
3
Show replies