how do you avoid having to return null in java whe...
# announcements
t
how do you avoid having to return null in java when the param is
(Something) -> Unit
?
g
return Unit.INSTANCE
?
t
sorry, badly worded question. how do you avoid having to return at all? i want it to behave like a void method in java
g
I don't think that's possible. But I can't find a source for you
t
you're probably right. i've tried this before, and ended up writing the code in java instead