I've got a problem statement where it would be rea...
# functional
r
I've got a problem statement where it would be really helpful to be able to match on about 4 variables (incoming states from different subsystems, and a requested state, and possibly even previous states), are there some compiler plugins / good workarounds for that?
p
Without pattern matching there's no easy workaround. You either do nested
when
clauses, or a pattern like visitor or strategy.
p
Oh, nice, so it creates one Triple per branch to check ­čśä It's an approach I'd never seen, and that's a lot to say.
Thanks Monk!