Join Slack
Powered by
how do you usually deal with interoperability when...
# announcements
d
david-wg2
06/21/2018, 4:30 PM
how do you usually deal with interoperability when it makes sense for kotlin to return
String?
, but it makes sense for java to return
Optional<String>
?
m
Max Russek
06/22/2018, 3:15 AM
My advice is if you expect to be called from Java that you don’t control (and therefore won’t eventually convert to Kotlin). If so, then
Optional
, otherwise annotate as nullable.
Open in Slack
Previous
Next