4 ms·
> , I feel like I can confidently say structural typing, in practice, is MUCH easier, better and fun to work with than nominal typing. I can think of times I li
by codygman 6y ago
> , I feel like I can confidently say structural typing, in practice, is MUCH easier, better and fun to work with than nominal typing. I can think of times I literally spent days trying to work through some refactoring in Java that was a nightmare because of the constraints of nominal typing, where the structural typing approach of TypeScript makes it trivial.
The obvious takeaway here in some respect is gradual typing is better and nominal typing is annoying for little gain.
What if the true answer were you need a more flexible and powerful type system.
I think that moderate so-called "pragmatic" languages are the worst experience because of their lack of guiding principles.