> strict is now true by default I would still have a full head of hair if this had been the case since the beginning. Nonetheless I am glad that we got here in the end.
Just use deno
Exactly when do you think demo started.
51–52 of 52 posts
Earlier quoted context omitted.
TypeScript never would’ve taken off if it had been strict from the beginning, it would’ve been just another forgotten gravestone next to Dart and CoffeeScript. I’m not saying those are bad languages, they’re not, but anything other than a very slow and gradual opt-in transition was just a non-starter. It was painful, but TypeScript played the long game.
Many of the strict checks did not even exist when TS was first created.
For example, it wasn't until Typescript 2.0 that we got null checks!
- https://www.typescriptlang.org/docs/handbook/release-notes/t...
function getLength(s: string): number {
return s.length; // Runtime crash if s is null/undefined
}
getLength(null); // TypeScript
[1]: https://djcordhose.github.io/flow-vs-typescript/2016_hhjs.ht...