3 ms·
Stuff like "===" and "use strict; for non-baffling behavior." Lots more of these kind of things I don't want to think about. I want fewer broken things to avo
by mixmastamyk 5y ago
Stuff like "===" and "use strict; for non-baffling behavior." Lots more of these kind of things I don't want to think about.
I want fewer broken things to avoid. A subset, not a superset.
- pacaro 5y agoFor sure. Typescript definitely gets you away from the worst of these, the typing mitigates most of the craziness about the two exact issues that you mention. But nonetheless, when the rubber hits the road, it's still JavaScript that is running, so weirdness is definitely still a thing
- Humphrey 5y agoTS does take into account things like === and you can get warnings for using them wrongly. But I'm not certain... I just don't find myself thinking about === and use strict.