3 ms·
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).
by wiseowise 1y ago
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).
- Traubenfuchs 1y ago> 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.
- mi_lk 1y agoThat applies to all JVM languages no?
- Traubenfuchs 1y agoJava devs at large are generally not excited about writing Scala.
- boobsbr 1y agoThere are dozens of us! Dozens!
- vips7L 1y agoI 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.
- nunobrito 1y agoDoesn'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.
- wiseowise 1y agoIt doesn’t make it valid Java. You can paste JS verbatim to TS file and it will work.
- latexr 1y agoYou 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.
- rootlocus 1y agoBut 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.
- wiseowise 1y ago> 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.