Alex Kleydints
Feb 11, 2021

--

Hello Nick, Thanks for sharing your opinion. I appreciate it.

I agree that TypeScript is adding an extra layer of complexity, but it also forces you to think about types from the get-go. And that in itself is not a bad thing. By annotating types you are also making additional documentation irrelevant.

Then again, TypeScript also has a lot of weirdness. For example, it doesn't really make sense to 'transpile' from TypeScript to JavaScript, since JavaScript still is interpreted at the end. Just as it doesn’t make sense to remove all the types during this transpilation.

I approach TypeScript as a gateway-drug to Rust, Go, and other statically typed languages. For me, it’s nothing more than a starting point, not a destination.

I wouldn't be surprised that eventually I would simply switch to Rust and compile to WASM, dropping JavaScript altogether.

Cheers,

Alex

--

--

Alex Kleydints
Alex Kleydints

Written by Alex Kleydints

I thinker — I code — I write — 万事开头难

Responses (2)