Hey,
the strictEqualityPatternMatching feature was recently released in Scala 3.8
As the author of this feature, I would now like to collect some feedback about it in order to ascertain whether it succeeded in its goal, a significant reduction of the friction encountered when enabling strictEquality. If so, hopefully it can be turned on by default in the future.
I would much appreciate it if you could take a minute to answer some or all of these questions.
- How many errors do you get when you add
-language:strictEqualityto your scala compiler flags? - How many of these disappear when you additionally enable
-language:experimental.strictEqualityPatternMatching? - are there any cases of pattern matching that you feel should compile but don’t (because of
strictEquality)? - are there any cases of pattern matching that now compile but in your opinion shouldn’t? If so, why?
- anything else you want to add?
Thanks for reading and commenting!