reactormonk
08/08/2022, 9:43 AMwhen
exhaustiveness without assigning the result to a variable? val x: Unit =
feels a bit silly.wasyl
08/08/2022, 9:46 AMexhaustive
that, when called on the when
result, will force exhaustiveness. Another way is what I use often, to have the when
a result of an expression function — it very often makes sense anywayephemient
08/08/2022, 12:22 PMwhen {
...
}.let { /* exhaustive */ }
which has no extra impactJaime
08/11/2022, 3:04 AMephemient
08/11/2022, 3:46 AM-language-version 1.5
it should not be enabled