5 ms·
Typescript allows you to have massive gaps in your types. I've been bitten by it so many times. As a huge proponent of types, sometimes I think it would be bett
by jokethrowaway 6y ago
Typescript allows you to have massive gaps in your types.
I've been bitten by it so many times.
As a huge proponent of types, sometimes I think it would be better not to have it, because of the trust you put in your type system and the mental load of always keeping in mind "oh wait, maybe someone is using this as any somewhere".
Node event loop GC pauses are also a problem and they contribute to instability and timeouts.
Rust can make app performance easier to reason about, improve performance, bring a real type system and all of this with a language which is just marginally harder to learn.
- golergka 6y agoCould you please share your stories? I've been bitten by the difference between Typescript compile-time and Javascript run-time in the past, but I've come to learn their limitations and ways to overcome them. > oh wait, maybe someone is using this as any somewhere There's a single option to disable any in all of your codebase. I've also found `unknown` type very useful for situations where you just don't care about what type you have, but would've had to use `any` before.