News for hackers. Stuff that matters.
Re:Good reasons not to use TypeScript by mcv on Tuesday February 18, 2020 @03:41AM (#22354447)
Being able to ban null values is absolutely fantastic. That's definitely a big improvement over Java, and seeing it in Typescript makes me wonder why Java allows it. In fact, seeing Option in Scala made me wonder why anyone ever thought null was a good idea.

Even if it's only a compile time check, and can therefore still be circumvented at runtime, this check for null values has still helped me out a lot. At least within a class it ensures my assumptions are consistent, which is not nothing.

There are no comments on this comment yet.