``` when(viewID) { R.id.some -> fun3() } ....
# android
l
Copy code
when(viewID) {
    R.id.some -> fun3()
}

...
fun fun3() { 
  fun1()
  fun2()
}
👍 2
😉 2
m
lovis: I like this solution best.
fun3
gives the meaning and context for why is
fun1
and
fun2
called together and the reason
fun1
is before and not after
fun2
.
l
just because we have powerful features like lambdas and other expressions, we should not forget the basics of software development or clean code
👍 1
m
Exactly.