6 ms·
oh wow that's one blast from the past ! I remember that project from very long ago (I never used it for various reasons) hmm As far as click goes -> myButto
by on_and_off 6y ago
oh wow that's one blast from the past !
I remember that project from very long ago (I never used it for various reasons)
hmm
As far as click goes ->
myButton.setOnClickListener { doSomething() }
kotlin makes this pretty minimal, I don't really see much we can remove there
- pjmlp 6y agoIf Java had proper support, the click example would be quite similar.
- ptx 6y agoAre you saying that Android doesn't have proper Java support? In what way? I thought Java lambdas could be used with SAM interfaces, just like in Kotlin. (Or are you saying that if Java supported Kotlin syntax it would look similar to Kotlin?)
- pjmlp 6y agoAndroid Java is a Java 8 subset, they are still catching up with Java 8. https://developer.android.com/studio/preview/features#j8-desugar https://developer.android.com/studio/preview/features#j8-des... Jake Warthon was doing contributions to support newer versions, but it remains a lotto what might eventually be supported long term, thus forcing Java library authors to have Android specific versions, or constrain themselves to what all flavours might actually support. As for SAM, yes you are right, but many Android developers only know Android Java and still think Java == 6 || 7.