this will be logical and consistent. or #default everywhere instead of _
case (#default, #unknown):
case #default:
Mike
···
on Wed, 10 Jan 2018 07:12:27 +0000 Antoine Cœur <adigitalknight@gmail.com> wrote:
And what about, as an alternative:
case (_, #unknown): … matches any int and any unknown enum case ...
case _: … matches anything ...Then it clearly goes the "pattern matching" way.