gildor
03/06/2018, 8:19 AMwhen expression with assignment:
https://youtrack.jetbrains.com/issue/KT-4895
There is a big dissussion and looks like assignment inside when is the best proposal imho.
Probably, if Kotlin team decide to implement this for when it would make sense to do also for ifmiszmaniac
03/06/2018, 8:21 AMgildor
03/06/2018, 8:22 AMwhen looks like much more common and important than guard for ifmiszmaniac
03/06/2018, 8:22 AMfun test () = when () {} syntax:)gildor
03/06/2018, 8:33 AMmiszmaniac
03/06/2018, 8:35 AMgildor
03/06/2018, 8:41 AM