Also, "strictNullChecks" is kind of optional security, which is almost always a bad idea in the long run.
Maybe they did this for backwards compatibility? Are there any plans to make "strictNullChecks" the default in the future?
Also, "strictNullChecks" is kind of optional security, which is almost always a bad idea in the long run.
Maybe they did this for backwards compatibility? Are there any plans to make "strictNullChecks" the default in the future?
I hope the --noImplicitAny option will become default.
https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in...
That should make it simple to treat ts more strict than js.
How does the ability to compile plain JS alter its goal of being a JS superset?
Not sure why the default matters at all. The idea behind TS is to be able to gradually turn up the strictness dial as you migrate from JS
In this case, too, there's a maintenance burden in that probably a bunch of type definitions files may need updating before this new strictness is usable in some projects. So there's a direct backward compatibility issue with existing Typescript code that will need to be addressed for this new strictness.
One of the proposals I've seen in the GitHub issues is that Typescript should at least offer a "Maximum Strictness" option that turns on all of the optional strictness checks together, which would be great for fresh projects, with the assumption that new versions of Typescript present some maintenance requirements for those projects. I would love to see that added to Typescript.