4 ms·
> TypeScript has been a thing for a while now. Yes, and typescript is great. But you do need a rigorous approach with it to get type safety on parr with langua
by thayne 6y ago
> TypeScript has been a thing for a while now.
Yes, and typescript is great. But you do need a rigorous approach with it to get type safety on parr with languages like java and c++. And since that type information is lost by the time it gets to the interpretor, it provide any benefit to performance. For example, the js interpretor has to check the types if operands at runtime to perform addition. JIT compilation helps a lot, but if the interpreted language had stronger typing, the JIT compilation could probably do an even better job, since it could make more assumptions.