3 ms·
> I usually have so much less code when throwing static types out the window that refactorings become a non-issue. This is almost certainly our difference. The
by johnfn 10y ago
> I usually have so much less code when throwing static types out the window that refactorings become a non-issue.
This is almost certainly our difference. The utility of static typing is greatly diminished when the codebase is not very large.
> Static types won't help you refactor a monster class into a structure of arrays.
Sure they will. I mean, sure, it won't be a one-click magic refactor, but that was never the benefit anyways. One strong advantage of static typings is that now you'll know exactly when all your call sites break, so that finding and fixing them will be much more straightforward.