Only if you deliberately add the catch-all case. If you don't and just handle all the cases explicitly, many languages will give you a warning or error when you add a new unhandled variant.
Re:Pattern Matching for Java
by lacampbell on Friday April 21, 2017 @12:54AM
(#14163177)
Yeah, it's a valid point.
As an OO apologist I do feel compelled to point out that
Would suffer from the exact same issue though.