Re:Swift Ported to Android
by kennywinker on Thursday February 25, 2016 @08:54PM
(#11179361)
Just because they are accessible, doesn't mean using them is seamless. For example all of Objective-C's runtime and classes are available to Swift but there is some friction e.g. methods that emit untyped NSArrays rather than typesafe swift arrays, or cases where you have to avoid using Swift structs because they can't be passed into the Objective-C runtime. Apple's done a lot of hard work, and each release of Swift has made this better, but it's still not entirely without hiccups... without having used Kotlin, I can't say for sure, but I would guess there are some analogous issues.
[ Parent
| on HN ]
Re:Swift Ported to Android
by on_and_off on Friday February 26, 2016 @11:42AM
(#11182323)
So far, it seems pretty seamless.
I guess that with a couple of years working on a production app in Kotlin, I would have to discover some hairy corner cases though.
What helps a lot is that the kotlin team has written many helper methods allowing a better flow between the android API and kotlin code : while you don't need it in order to get interop, it allows to more easily write idiomatic kotlin code while interacting with Android.