Hacker News new | ask | show | jobs
by drekipus 877 days 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.

1 comments

People 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.