4 ms·
Switching from JS to Typescript was like moving from machine code to C. Note: machine code (hex) not assembler.
by dboreham 6y ago
Switching from JS to Typescript was like moving from machine code to C. Note: machine code (hex) not assembler.
- DaiPlusPlus 6y agoJavaScript is getting more “typed” anyway - what with Promises and other objects/interfaces in the DOM being conceptually statically typed - where JavaScript’s type-juggling simply can’t help you - so writing JavaScript today against modern browser/NodeJS APIs feels like writing VBScript against ActiveX instead of writing in VBA/VB6: you can do essentially the same things, but you have no idea if your program will actually work or not. It would not surprise me if the ECMAScript folks just throw in the towel and adopt TypeScript into ECMAScript as its official type-annotation feature - like how Python is doing - except without the duplication of effort.