Reviewing feedback on patterns in switch
Mark Raynsford
mark at io7m.com
Wed Feb 16 16:05:20 UTC 2022
On 2022-02-16T10:49:19 -0500
Brian Goetz <brian.goetz at oracle.com> wrote:
> One thing that we have, perhaps surprisingly, *not* gotten feedback on
> is forcing all non-legacy switches (legacy type, legacy labels,
> statement only) to be exhaustive. I would have thought people would
> complain about pattern switches needing to be exhaustive, but no one
> has! So either no one has tried it, or we got away with it...
>
I tried it and liked it. It didn't go unnoticed. :)
--
Mark Raynsford | https://www.io7m.com
More information about the amber-spec-experts
mailing list