News for hackers. Stuff that matters.
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