|
|
|
|
|
by hota_mazi
3196 days ago
|
|
I wouldn't trust anyone who thinks a solution is a panacea in the software field, but having type annotations demonstrably leads to not just more correct code but also code that can be understood better by its surrounding tooling, thereby enabling automatic refactorings, auto completion, smart browsing, optimizations, etc... Static typing is not perfect but it's better in all respects than dynamic typing. |
|
... unless of course that solution is static typing.
> Static typing is not perfect but it's better in all respects than dynamic typing.
Except performance, of course: A dynamically-typed language is at the top of the STAC-M3 benchmarks for time series data processing.
Oh and defect count: Qmail has the lowest defect count of any source-available software in the last twenty years and it's written in C.
So I guess static typing is better unless you want correct code that runs quickly, which unfortunately is important to me.