More Kotlin Answers

1 view
Skip to first unread message

Bruce Eckel

unread,
Sep 18, 2014, 11:45:51 AM9/18/14
to Scala...@googlegroups.com
- Does Kotlin support Java 8 yet?
More no than yes: it can read Java 8 binaries, but thinks that default methods are abstract etc.
 
- What collections library works best? Java 8, Guava, something else?
There are known issues with Java 8 streams (most likely you won't get them to work). 
The most used by current Kotlin adopters is JDK 6/7 collections + extension functions provided by the Kotlin standard library.
 
- Does Kotlin work with Play?
Can't really answer this, probably it works about as well as Java.
 
- Can we create Scala classes and call them from Kotlin?
We tried that, worked for us.

Warning: you may be disappointed by the compiler complaining about nullable types from all Java/Scala libraries except JDK. We are aware of this issue, and are working to fix it at the moment. Meanwhile, you can use external annotations to work around this problem, or put "!!" and "?." in your code.
 
- Is there a "best practices" set of libraries and frameworks that you've found optimal for Kotlin development?
Maybe Hadi is the best person to answer this.
 
Also, during a discussion today, it was observed by one person that if he was going to bring people from Java to Kotlin, he wouldn't be able to do it without an Eclipse plugin because the people he knows would not be able to deal with a new language AND being pulled away from Eclipse at the same time. We even discussed the possibility of a mediocre Eclipse plugin just to get those people started, and once they decided they like the language and wanted better support THEN they might be willing to move to Intellij.
We are going to release an Eclipse plugin very soon (in a matter of weeks)

Hi Bruce,

We don't currently have a list of best-practices in terms of libraries. There is a short list of Idioms here:


We've tried to follow certain good practices with Spek:


although take that with a pinch of salt too since there are areas that need cleaning up :). 

There's also a list of of libraries that use some idiomatic Kotlin to create wrappers around existing JVM libs:


Reply all
Reply to author
Forward
0 new messages