Skip to content

enable strictEqualityPatternMatching behaviour for non-case objects#25850

Merged
SolalPirelli merged 1 commit intoscala:mainfrom
mberndt123:SIP67-v2
Apr 28, 2026
Merged

enable strictEqualityPatternMatching behaviour for non-case objects#25850
SolalPirelli merged 1 commit intoscala:mainfrom
mberndt123:SIP67-v2

Conversation

@mberndt123
Copy link
Copy Markdown
Contributor

Hi,

after collecting feedback for strictEqualityPatternMatching (SIP-67), I've come to the conclusion that only enabling this behaviour for case objects isn't useful and it's better to enable it for all objects. Declaring ADTs without the case modifier for the relevant objects isn't that uncommon and there's no reason to not have it work in that case, too.
I've amended SIP-67 accordingly and I hope the SIP committee will approve the change soon.

@SethTisue
Copy link
Copy Markdown
Member

hoping this could make 3.9 — discussion on scala/improvement-proposals#97

@Gedochao Gedochao added the stat:needs decision Some aspects of this issue need a decision from the maintainance team. label Apr 19, 2026
@Gedochao
Copy link
Copy Markdown
Contributor

hoping this could make 3.9 — discussion on scala/improvement-proposals#97

Let's talk about this on Scala Core.

@SethTisue SethTisue added this to the 3.9.0 milestone Apr 22, 2026
@SethTisue
Copy link
Copy Markdown
Member

SethTisue commented Apr 22, 2026

Core agreed this is fine to merge for 3.9, assuming no new doubts arise at the April 24 SIP meeting.

Reasoning: the feature is experimental anyway, and the implementation changes don't appear risky.

@mberndt123
Copy link
Copy Markdown
Contributor Author

mberndt123 commented Apr 25, 2026

Since core has approved this, is anything else missing to merge this?

@SethTisue SethTisue added area:strictEquality scala.language.strictEquality and removed stat:needs decision Some aspects of this issue need a decision from the maintainance team. labels Apr 26, 2026
@SolalPirelli SolalPirelli merged commit ff8bb68 into scala:main Apr 28, 2026
45 checks passed
@mberndt123
Copy link
Copy Markdown
Contributor Author

🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:strictEquality scala.language.strictEquality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants