Ruckus
05/11/2018, 7:22 PM{
to the same line as the let
sksk
05/11/2018, 7:22 PMRuckus
05/11/2018, 7:24 PMAll discussion in this channel should begin with a use-case or proposal instead of a question.
karelpeeters
05/11/2018, 7:26 PM;
karelpeeters
05/11/2018, 7:27 PMval a = longExpressionThatbasicallyTakesUpTheWholeLine
+ 2
karelpeeters
05/11/2018, 7:27 PMkarelpeeters
05/11/2018, 7:28 PMRuckus
05/11/2018, 7:30 PM;
to avoid exactly what @sksk is trying to do:
val callback: () -> Unit = if (true) {
test(); // required ;
{ println("yep") }
} else {
test(); // required ;
{ println("nope") }
}
Ruckus
05/11/2018, 7:31 PM;
, it thinks it's a param to test
.Ruckus
05/11/2018, 7:33 PM_screen?.let()
{
it.pause()
_prevScreen = it
}
sksk
05/11/2018, 7:40 PMRuckus
05/11/2018, 8:05 PM