4 ms·
I would make the exact same argument but with completely the opposite conclusion. Just use type casting which is self documenting and easily maintained. How ca
by depmann 6y ago
I would make the exact same argument but with completely the opposite conclusion. Just use type casting which is self documenting and easily maintained. How can using Typescript be considered somehow less complex?
- WhitneyLand 6y agoI think there’s more to it than this but let’s pursue your point for a moment. What you’re not taking into consideration is that de facto standards matter. What if you invented a language tomorrow called XYZ and it was 20% better than a popular language today? Would you language eventually take over and become popular? Maybe. After how many years? Who knows. But until that happens far more JS developers are de facto making an investment in learning at least the basics of typescript vs your mechanism. The practical reality of that is if I start putting together a team to build something it’s much less likely that people will have to take time to learn typescript basics then they will to learn your tool. Are there times to throw out the old and go with what’s better or simpler? Sure. But that equation is not as simple as X > Y even if that were the case which I’m not convinced it is.