logoalt Hacker News

smt88today at 2:02 PM1 replyview on HN

How would TS fix null in JS without violating its core principles of adhering to EcmaScript standards and being a superset of JS?


Replies

knoctetoday at 2:17 PM

Maybe spit warnings when undefined is used? In the same way it does for when you use typeScript in a type-loose way.

But yeah it's a fair point. Sometimes I think I should just write my own lang (a subset of typescript), in the same fashion that Lisette dev has done.

show 1 reply