News for hackers. Stuff that matters.
Re:Pattern Matching for Java by ernst_klim on Friday April 21, 2017 @08:28AM (#14164891)
>How is this not exhausted?

If you would remove FSpecialization(Expression e1, Expression e2) a.k.a wildcard pattern, compiler would not warn you about your dispatching is not exhaustive. And if you'd add another type of expression, all your dispatchers and visitors without wildcard would become non exhaustive, staying valid code from a compiler perspective at the same time.

There are no comments on this comment yet.