2 ms·
> If you want to get into TypeScript, don’t think you can leave JavaScript behind. It will find you, and it will get you. And do what? Perhaps it's my experie
by Tade0 3y ago
> If you want to get into TypeScript, don’t think you can leave JavaScript behind. It will find you, and it will get you.
And do what?
Perhaps it's my experience with a somewhat large(150k LoC) pre-CommonJS codebase, but I get the feeling that the language is being presented as much more intimidating than it really is.
Yeah, strange things happen when you add an array literal to an array literal, or do any sort of type coercion really.
My advice is: don't do it then. Seriously, you have to actively try to even encounter these quirks - especially now that we have language constructs like template strings, which prevent most such issues.