I actually agree it is better. But... my point was that the switch statement was already pretty readable. If there are gains, they feel pretty small in these examples.
And to be clear, I like pattern matching. A lot. I just don't feel this really shows it off that well.
And to be clear, I like pattern matching. A lot. I just don't feel this really shows it off that well.