4 ms·
Overall I do like working with Typescript and structural typing does have some real advantages but, like just about everything in engineering, there are also tr
by cageface 2y ago
Overall I do like working with Typescript and structural typing does have some real advantages but, like just about everything in engineering, there are also tradeoffs.
Without some discipline you can create some very messy type spaghetti with TS. Nominal typing is more rigid but it can also force you to think more clearly about and carefully define the different entities in your system.