robstoll
04/27/2018, 8:29 AMclass A:
B {
fun foo()
=
test()
}
where it looked as follows before
class A: B {
fun foo()
= test()
}
christophsturm
04/27/2018, 2:52 PMrobstoll
04/27/2018, 3:44 PMfun foo()
= test()
to
fun foo() =
test()
robstoll
04/27/2018, 3:46 PMchristophsturm
04/27/2018, 3:53 PMrobstoll
04/27/2018, 4:16 PMfun foo() = {
test()
}
//vs.
fun foo()
= { test() }
I prefer the second variant where I see in one place that it returns a lambda. Whereas in the first variant I think first that it is a function with Unit as return type.