5 ms·
Have you all seen Kotlin?
by jpliska 10y ago
Have you all seen Kotlin?
- premium-concern 10y agoYes, it's like they reinvent all the things that were considered but discarded in Scala and believe they found something nobody ever thought about before.
- partisan 10y agoI am not sure that Kotlin competes with Scala in any way. They are trying to remove the pain from Java by providing a concise and safe language (see the quotes from their website below). What are "all the things" they reinvented that were discard in Scala? > Kotlin is a pragmatic programming language for JVM and Android that combines OO and functional features and is focused on interoperability, safety, clarity and tooling support. > Being a general-purpose language, Kotlin works everywhere where Java works: server-side applications, mobile applications (Android), desktop applications.
- ionforce 10y agoKotlin competes with Scala in that they are both alternatives to Java.
- premium-concern 10y ago> What are "all the things" they reinvented that were discard in Scala? Extension methods, properties, special syntax for everything, final by default, short constructor syntax, trying to put band-aid around Java's broken collection types, ...
- partisan 10y agoThank you. I appreciate the list.
- didip 10y agoI'd love to learn more about Java's broken collection types. What's broken about them?
- premium-concern 10y agoThe pattern of throwing exceptions for operations deemed "unsupported", an API that requires massive workarounds to keep alive in Java 10, no support for immutable collections, unmodifiable views are a complete clusterfuck, no persistent collections etc.
- yawaramin 10y agoEvery single description of Kotlin in your comment could just as easily be describing Scala.
- pjmlp 10y agoAt least they care about 1st class support on Android Studio, instead of InteliJ + sbt + missing support from Android tooling.
- premium-concern 10y agoIf you feel that something is missing people would likely be happy to receive bug reports/feature requests.
- pjmlp 10y agoThey are full aware of it: "Android Studio should currently not be used for development with sbt and Scala. Chances are, however, that it's a good fit for a Gradle + Scala setup." http://scala-on-android.taig.io/editor/android-studio/ http://scala-on-android.taig.io/editor/android-studio/ Using InteliJ instead of Android Studio means not being able to use the latest tooling even from the stable version, as InteliJ is always some versions behind. Using Gradle + Scala implies a few configuration steps that tend to break at each new Android Studio release, versus the out of the box experience from Kotlin.
- premium-concern 10y agoI have never seen this documentation and it seems to be wildly outdated. Which issues did you experience with Android Studio?
- pjmlp 10y agoNo out of the box integration even for basic stuff. I expect no more hurdles than just using Java official Android tools.
- paulddraper 10y agoYes. It has awful nullable unions rather then monadic options/maybes.
- lmm 10y agoYes, it's awful. It's the opposite of that; it's removing general abstractions that Scala got right and replacing them with zillions of special cases. Ceylon is what you should be looking at.
- therestisgone 10y agoI would do more things in Ceylon if it wasn't plagued by performance problems. So far the only way I've found is to avoid any of the few libraries written in Ceylon and just use Java libraries but if you're going to do that then Kotlin's interop is far more appealing.
- lmm 10y agoHow so? Kotlin's interop isn't actually any better as far as I can see?