News for hackers. Stuff that matters.
Re:The Python Paradox by tejinderss on Friday January 27, 2023 @02:29AM (#34543568)
You missed TypeScript, which has advanced generics with union support and the JS ecosystem is getting better each day and it’s ubiquitous.
Re:The Python Paradox by goodoldneon on Friday January 27, 2023 @02:43AM (#34543639)
TypeScript is fantastic —- such a flexible type system.

It was introduced 18 years after JavaScript but feels like a perfectly natural evolution of JavaScript. TypeScript _should_ feel like a wonky bolt on but it’s wonderful. A testament to the folks who built it

Re:The Python Paradox by whizzter on Friday January 27, 2023 @05:13AM (#34544462)
To be honest early TypeScript was quite bad with class dependence (functional style was an afterthought) and "namespaces" (That was still used in the mainline TS compiler until recently iirc, behaved like nested objects in JS, kind-of useful but totally missed the NodeJS file-based-module-separation) felt a lot like they wanted _Java_ or C#.

Sometimes during the late 2.x series TypeScript really came into stride with ability to express more "dynamic" types, using a functional style and having arrays-behaving-like-tuples,etc and the 3.x and 4.x series has really made it polished.

TL;DR; It's quite great now, but don't dismiss sceptical people because early versions of it kinda DID suck.

Re:The Python Paradox by goodoldneon on Friday January 27, 2023 @07:46AM (#34545383)
“Felt like they wanted C#” makes sense because Anders Hejlsberg was involved with TypeScript. Glad they stopped forcing C# into it and let it be its own thing. Not that C# is bad though!