News for hackers. Stuff that matters.
Re:Intro To Pattern Matching – Covers C# 9 by mjburgess on Wednesday February 19, 2020 @01:41PM (#22368582)
Do you know why they dont do exhaustiveness checking?

They don't in scala either and I had assumed that was to do with type erasure. Given F# does however, presumably there is no limitation to C# doing it?

Re:Intro To Pattern Matching – Covers C# 9 by platz on Wednesday February 19, 2020 @02:01PM (#22368808)
> Do you know why they dont do exhaustiveness checking?

Because then you would need to limit matching to some kind of closed algebraic data type (ADT) so that compiler knows what is left to be matched on, or provide a catch-all clause.

I thought scala does produce partial warnings matching on case classes