pavel
04/23/2018, 7:52 PMfoo.if { bar() }
as return foo
if bar()
is truegabrielfv
04/23/2018, 8:22 PMelse
case, unless it returned null
pavel
04/23/2018, 8:24 PMarekolek
04/24/2018, 7:57 AMfoo if condition else bar
gabrielfv
04/24/2018, 8:18 PMif-else
and when
blocks is a nice feature, but i'd like to be able to use condition ? foo : bar
instead of if (condition) foo else bar
for the same reason that i like python ternary over C/Java ternary.