5 ms·
For android, we already have kotlin (https://kotlinlang.org/ https://kotlinlang.org/), which is very similar to Swift and has 100% interoperability with java.
by SureshG 11y ago
For android, we already have kotlin (https://kotlinlang.org/ https://kotlinlang.org/), which is very similar to Swift and has 100% interoperability with java.
- niutech 11y agoBetter alternative is Groovy: https://jaxenter.com/groovy-is-the-swift-alternative-for-android-107846.html https://jaxenter.com/groovy-is-the-swift-alternative-for-and...
- seabrookmx 11y agoBetter is very subjective. They both solve a lot of the same problems, but lots of people will go for Kotlin just for static typing.
- niutech 11y agoGroovy 2.0 added static typing: http://www.groovy-lang.org/releasenotes/groovy-2.0.html http://www.groovy-lang.org/releasenotes/groovy-2.0.html
- seabrookmx 11y agoIt added type checking ala. Hack and Typescript. It's optional, and doesn't give you the same compile-time guarantees that a language with pure static typing does. Also, dynamic languages like Groovy take a performance hit. Static typed JVM bytecode runs faster than dynamic bytecode. Whether either of those are relevant to your application really depends, but Kotlin definitely is going to gain some followers due to it's differences from Groovy.
- uxwtf 11y agoI'm learning Swift right now, and really appreciate type checking.
- vorg 11y ago> Groovy creator Guillaume Laforge blogged that, “an acquainted Groovy eye would immediately notice the inspiration the Swift designers took from Groovy.” Guillaume Laforge is NOT the creator of the Groovy Language, James Strachan is. And Swift did not take inspiration from Groovy. What else is inaccurate in the article? 6 months after it was written, Pivotal voted against Groovy's diversion into static typing and Android development by retrenching Laforge and the programmer working on it.
- pjmlp 11y agoUntil Google says it is the new king, most customers won't green light it.