|
|
|
|
|
by networked
172 days ago
|
|
> Adding static typing to a dynamic language mostly gives you the disadvantages of both, without a lot of benefits. Can you elaborate? I don't share this experience, and I'm interested in bringing static typing to a language without static typing, so I'd like to understand. In new Python and JavaScript codebases, optional typing has had clear benefits for refactoring and correctness and low costs for me. Legacy codebases can be different. |
|
In other words, I found that the resulting code often looked more like Java but with weaker guarantees about types and much worse performance.