Re:Deno will stop using TypeScript
by Kinrany on Sunday June 21, 2020 @06:28PM
(#23595884)
That quote is not really relevant: TS is as functional as JS.
[ Parent
| on HN ]
Not really in the same way, though.
I mentioned that paradigms of functional programming languages like Clojure translate well to JavaScript. They do not to typescript, because it is a statically typed language.
If you are interested in why are you dynamically typed language has benefits for functional programming, please see this talk: https://youtu.be/oytL881p-nQ
Typescript typing is fundamentally optional, so this criticism, even if true regarding statically typed languages, does not apply to Typescript.
Typing is optional both for individual variables via the `any` type, and compiler-wide, by configuring it to assume untyped variables are `any` by default.