> what if you need to return a value? do you pa...
# language-proposals
z
what if you need to return a value? do you parameterize the Callback and force a return in every branch or do you make two callbacks and methods?
I think a SAM approach with
(Result.Implementation) -> T
would handle all use cases, no? Though
T
would have to somehow be allowed to be
Void
so Java doesn’t have to return
Unit.INSTANCE