News for hackers. Stuff that matters.
Re:Are dynamic languages going to replace static languages? ... by nawgz on Wednesday August 04, 2021 @12:16PM (#28062795)
TypeScript is not really big and complex, it's just a type system. The only real pain with TypeScript vs. a language with native static types is that TypeScript requires a bit of extra work to fiddle with the compiler, otherwise when it comes to the code it's flexible but can be used in a very simple manner.
Re:Are dynamic languages going to replace static languages? ... by Zababa on Wednesday August 04, 2021 @12:48PM (#28063248)
> TypeScript is not really big and complex, it's just a type system.

It's a very complex type system though.

Re:Are dynamic languages going to replace static languages? ... by nawgz on Wednesday August 04, 2021 @02:19PM (#28064379)
Can you say some ways it is more complex than other type systems? I think type systems are inherently complex.

From my perspective, I feel user-facing complexity is quite low in TypeScript in some key ways. You can write your type declarations anywhere, you can import and export them in a familiar JS-module way, you don't need to explicitly type anything in particular so you can be anywhere on the spectrum from very rigorous types to no types at all / `any` everywhere, and finally it has really good error messages so you rarely are stuck with a type mismatch that makes no sense.