4 ms·
My question is why Xtrend instead of Kotlin or Scala? Both languages have good reasons to recommend them and both already support Android today.
by mncolinlee 12y ago
My question is why Xtrend instead of Kotlin or Scala? Both languages have good reasons to recommend them and both already support Android today.
- rsynnott 12y agoMentioned in the article; many JVM languages have substantial performance issues under Dalvik. Scala certainly does; not sure about Kotlin.
- eeperson 12y agoIs this actually true for Scala? I was under the impression that statically typed languages run basically the same as Java on Android. Granted it has some other issues (such as running in to limits on the number of classes).
- frowaway001 12y ago> Scala certainly does; not sure about Kotlin. How did you measure that?
- LeonidasXIV 12y agoBecause Xtend compiles to plain Java code that is, mostly, readable. So the investmet in Xtend is low: in case it fails, you can compile your codebase into Java and continue from there. Basically, it is very similar to what CoffeeScript does. A better syntax with (largely) same semantics. Which can have massive advantages.
- mncolinlee 12y agoI'm not sure this answers the question or even explains why Xtend is better than say, RetroLambda. It sounds like lambda support is already being backported from Java 8 by the Android team and since you can use lambdas today, any investment in Xtend is questionable.