5 ms·
Since Kotlin has been officially supported by Google for Android, Scala has a strong competition which I hoped to become Java3 one day. https://developer.androi
by nancyp 9y ago
Since Kotlin has been officially supported by Google for Android, Scala has a strong competition which I hoped to become Java3 one day. https://developer.android.com/kotlin/index.html https://developer.android.com/kotlin/index.html
- _Codemonkeyism 9y agoIf you chose Scala for .map(), less noise and functions over Java 7, yes. If you chose Scala for type classes and the power of the type system then no.
- xyzxyz998 9y agoGoogle hires more republican lobbyists now and approved Kotlin which by a Russian firm.
- pjmlp 9y agoScala never had a good tooling story on Android, now even less that they moved into Java 8 bytecode.
- bad_user 9y agoGoogle is bringing Java 8 support, and from what I understood from one of their engineers, they are working on supporting invokeDynamic as well, so we might get the whole package: https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html?m=1 https://android-developers.googleblog.com/2017/03/future-of-... Scala 2.12 has moved to Java 8 indeed, however this means modern features that are used for encoding Scala: invokeDynamic and default interface methods. These should make Scala compiled code faster and more stable in regards to backwards compatibility. Both Java 6 and 7 have need EOLed. We cannot stand still because of Android's shitty support. Google has effectively fractured the ecosystem, pulling off what Microsoft couldn't do with J#, and they got away with it. I actually think that they preferred to announce Kotlin as being a first class citizen as a marketing trick in order to offset the lack of support for Java 8. Even so, Scala does in fact have great Android support: 1. Scala 2.11 will remain supported for some time, language-level features have already been backported from 2.12 and Typelevel.org also has a commitment to support it even further 2. We have great integration with the tool chain, see https://github.com/scala-android/sbt-android https://github.com/scala-android/sbt-android 3. For a pretty cool open source project made with Scala, that uses functional programming libraries like Cats and Monix, see: http://www.9cards.io http://www.9cards.io So if you think about it, given all the other tooling available, compared with other languages Scala actually has stellar support, along with actual projects ;-)
- sjrd 9y ago> Scala 2.11 will remain supported for some time Even though I very much wanted this to be true, that promise has been broken. Scala 2.11 has been EOL'ed 3 months ago with 2.11.11.
- pjmlp 9y ago> Google has effectively fractured the ecosystem, pulling off what Microsoft couldn't do with J#, and they got away with it. Mostly because of the SV love, that Microsoft lacked. Sun and Oracle were right all along. > Even so, Scala does in fact have great Android support: I don't agree with it, because for me having to deal with SBT, outdated android plugins in InteliJ and GUI DSLs instead of Gradle, Android Studio and Studio GUI designer isn't a synonym for great. Maybe it changed during the last two years, but that was the scenario I faced.
- mamon 9y agoArent IntelliJ and Android Studio one and the same? Hard for me to see how you can have "outdated Android plugins" in one, but great tooling in the other.
- pjmlp 9y agoAndroid Studio is a fork of InteliJ, and includes parts of CLion as well. InteliJ is always behind Android Studio, specially Canary version.
- jvican 9y agoI think it has very much changed. In any case, open source tools are there to be improved by the community. If you feel sbt is not solving your problems in the right way or could be improved, please get in touch with us. We're always happy to make the tool easier to use, at all levels.
- pjmlp 9y agoI am not really into Scala, just wanted a better alternative to Java 6 on Android. Finally getting some kind of official support for Java 8 and addition of Kotlin solved that problem.
- bad_user 9y agoJava 3 will always be Java ;-) it's how the industry works.
- edem 9y agoKotlin is not just for Android. It is superior on the backend as well with 100% Java interop and binary compatibility to boot.