2 ms·
> The only reason to consider type hints is for a performance increase No, the reason to consider type hints is because it makes it easier to understand existi
by dragonwriter 4y ago
> The only reason to consider type hints is for a performance increase
No, the reason to consider type hints is because it makes it easier to understand existing code and write new code that interacts with it correctly. Comprehensibility and correctness are more important than performace.
- Heston 4y agoIn a dynamically typed language, that's what comments are for. Since you didn't need types specified in the first place, why would you have trouble interacting with it? Comprehensibility and correctness are just as important as performance.