You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Scala 2.13, there's an -Xlint:strict-unsealed-patmat compiler flag that makes the exhaustivity checking warn in situations where you pattern match on an unsealed type.
Non-exhaustive pattern matches can be a source of countless errors, so I believe having the option to opt into such checking would be really beneficial for safety of Scala 3 code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In Scala 2.13, there's an
-Xlint:strict-unsealed-patmatcompiler flag that makes the exhaustivity checking warn in situations where you pattern match on an unsealed type.Non-exhaustive pattern matches can be a source of countless errors, so I believe having the option to opt into such checking would be really beneficial for safety of Scala 3 code.
Can we please have such an option?
BetaWas this translation helpful?Give feedback.
All reactions