in reply to Re: converting from switch to given-whenin thread converting from switch to given-when
Precisely.
Smartmatch is easy. (Except when it isn't.)