bod08/03/2019, 3:10 PM
for it. This way from Kotlin it's nice, you can do
. But from Java you're going to have to do
foobar(dateFrom to dateTo)
and now you need Kotlin in your dependencies for this to work - not cool. Ideally I'd like to have both
foobar(new kotlin.Pair<>(dateFrom, dateTo))
and not this Java issue... Ideas?
tipsy08/03/2019, 3:26 PM
I'm making a lib in Kotlin, and want to make it nice to use from Kotlin and Javawrite it in java
bod08/03/2019, 3:28 PM
work in Java?
Mark Murphy08/03/2019, 3:32 PM
method. You could offer a Kotlin wrapper library that has your
API via an extension function.
bod08/03/2019, 3:35 PM
class then. Yeah the extension sounds good. Thanks
louiscad08/03/2019, 3:58 PM
karelpeeters08/03/2019, 5:31 PM
if it's really a range.
bod08/03/2019, 9:01 PM
may be cool indeed yes