Xy Ren
06/12/2021, 10:21 AMwhen. Is there any library dealing with this kind of problem or any idiomatic way? I tried to roll a dsl but it looked terrible:CLOVIS
06/12/2021, 10:49 AMval a = ...
val b = ...
when {
a is TypeA && b is TypeB -> ...
else -> ...
}Xy Ren
06/12/2021, 10:50 AMwhen (...) { forms.