4 ms·
> TypeScript is incredibly safe I expect this comment is from a person who has not used strongly typed languages extensively. Is that true? When "1" == 1, an
by worik 1y ago
> TypeScript is incredibly safe
I expect this comment is from a person who has not used strongly typed languages extensively. Is that true?
When "1" == 1, and "1" can cross a wire and be assigned to a number, when there are no ints...
Perhaps I have not given Typescript enough rope, I only spent eighteen months immersed
It is not shit, but it is very outdated IMO.
I have been known to be wrong, I admit, but all these "unconventional " casts, together with the standard ones, are exactly what frustrated me
- evilduck 1y agoWell for one, using double equals is evidence you don’t know JS well enough. Many years before Typescript came along the JS community was prohibiting “1” == 1 style coercions.