2 ms·
I've thought that adding the type information is to help less bugs, so I'd be curious to see evidence of the contrary. I use python add my day job, and I hate
by drekipus 3y ago
I've thought that adding the type information is to help less bugs, so I'd be curious to see evidence of the contrary.
I use python add my day job, and I hate writing and dealing with typing. I do admit it makes it easier to reason about other people's code though, especially when faced with libraries that don't have any hints.
- ReflectedImage 3y agoPeople get this weird idea in their heads that if they do more stuff than what they have done is better in some way. In practice however simpler code usually wins out. Docstrings are usually a lot better than type hints for that purpose.