News for hackers. Stuff that matters.
Re:Node.js adds experimental support for TypeScript by quonn on Thursday July 25, 2024 @03:22AM (#41065738)
Kotlin is much closer to Java than to TypeScript even in terms of flexibility.
Re:Node.js adds experimental support for TypeScript by DarkNova6 on Thursday July 25, 2024 @03:30AM (#41065792)
To me "Flexibility" sounds a lot like "The programmer always knows what he does".
Re:Node.js adds experimental support for TypeScript by scotty79 on Thursday July 25, 2024 @11:27AM (#41069804)
Flexibility means for me more something more like, I think I know what I want to do but I also know that I'm probably wrong about that, so for now let's skip all the baroque protocol and let me make it work first. Once I'm sure I wrote what I actually wanted I'll add types if only to get rid of some bugs, consider edge cases and earn nice code completions and auto-generated docs.
Re:Node.js adds experimental support for TypeScript by sgammon on Thursday July 25, 2024 @03:44AM (#41065904)
Sure, but Kotlin is to Java as TypeScript is to JavaScript, which is the point I am making.
Re:Node.js adds experimental support for TypeScript by wiseowise on Friday July 26, 2024 @05:02AM (#41076989)
That’s not even remotely true.

TypeScript is a direct superset of JavaScript. Any valid JS is a valid TypeScript.

If Kotlin is what TS to JS, then so is Groovy, Scala, Clojure and other JVM languages.

Re:Node.js adds experimental support for TypeScript by sgammon on Friday July 26, 2024 @03:29PM (#41081506)
> TypeScript is a direct superset of JavaScript. Any valid JS is a valid TypeScript.

Kotlin on JVM is a direct superset of Java on JVM. Any valid Java is also valid Kotlin at the bytecode layer.

> If Kotlin is what TS to JS, then so is Groovy, Scala, Clojure and other JVM languages.

Correct

Re:Node.js adds experimental support for TypeScript by sgammon on Friday July 26, 2024 @03:30PM (#41081510)
Laughs in `: dynamic`