Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JS is a valid TS, Kotlin is not a valid Java (only at a bytecode level, but then you might as well combine all JVM languages).




But TS is not valid JS and nobody uses TS because they can write JS in a file with a different extension. You also get 0 benefit from running `tsc` on a JS file. You could argue that C is valid C++ so there's no reason to discern them either.

> You could argue that C is valid C++ so there's no reason to discern them either.

Only up to C90, and even modern C++ doesn’t fully implement modern C.

JS is a valid TS.


> Kotlin is not a valid Java

But you can easily have both of them in the same project (e.g. when slowly moving to kotlin) and have them interop.


It doesn’t make it valid Java. You can paste JS verbatim to TS file and it will work.

You can also easily have Objective-C, C, and C++ in the same Swift project and have them interop. That’s a feature of Swift. But adding their numbers together wouldn’t make sense.

Doesn't really bring benefit. With Java you are more quickly useful in C++ and can write server apps without fuss. Very little benefit in using a different language when Java literally does the same and is used everywhere else.

That applies to all JVM languages no?

Java devs at large are generally not excited about writing Scala.

There are dozens of us! Dozens!

I like where Scala 3 is headed (finally). Martin seems to realize that the simpler "direct" programming model is better and that will make the language more attractive to regular people who aren't FP purists. Though it does feel like it might be too little too late.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: