orangy
it
cannot be added, because it can change a meaning of some it
already usedRuckus
10/26/2018, 4:02 PMwhen
use a more lambda-ish syntax?
when (getData()) { data ->
data is Thing -> ...
...
}
Ruckus
10/26/2018, 4:03 PMit
orangy
when
is actually a function 🙂elizarov
10/26/2018, 4:20 PMRuckus
10/26/2018, 4:24 PMRuckus
10/26/2018, 4:24 PMelizarov
10/26/2018, 4:25 PMelizarov
10/26/2018, 4:26 PMelizarov
10/26/2018, 4:27 PMcomponentX
operatorselizarov
10/26/2018, 4:27 PMRuckus
10/26/2018, 5:20 PMKClasses.sealdSubclasses
?louiscad
10/26/2018, 6:38 PMorangy
orangy
widget.addListener {
move -> …
click -> …
cancel -> …
}
where move
, click
and cancel
are methods of the interface that I need to pass to addListener
.
Multi-lambda if you wish.Ruckus
10/26/2018, 7:09 PM