Comment

Comment by orange8

> I get almost as much benefit from the rigorous null checking in TS as I do from the typing. I would use it for that alone. [1]

This.

I suspect there is a certain way those who rave about TS like yourself write and structure their code (all code, regardless of language) in a way that naturally lends itself to strict typing. The "rigorous null checking" comment struck me as odd, as someone who has written JS for almost 20 years, I've just never had to think about, or use null values. I probably just use the good parts of the language and avoid the bad [2]

[1] https://news.ycombinator.com/item?id=23913294

[2] https://www.oreilly.com/library/view/javascript-the-good/978...

parent orange8 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton