Skip to content

Rename productArity in pattern matcher to prodArity #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2014

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 14, 2014

productArity is a method defined in ProductN which is inherited from
case classes. It is possible that it will be usewd in the implementation
of pattern matching in the future. The previous implementation used
the same name to mean something else: Not the arity of the case class
itself but the arity of the pattern/type it represented.

Renaming to prodArity avoids the confusion. Review by @DarkDimius

productArity is a method defined in ProductN which is inherited from
case classes. It is possible that it will be usewd in the implementation
of pattern matching in the future. The previous implementation used
the same name to mean something else: Not the arity of the case class
itself but the arity of the pattern/type it represented.

Renaming to prodArity avoids the confusion.
@odersky odersky mentioned this pull request Nov 14, 2014
DarkDimius added a commit that referenced this pull request Nov 17, 2014
Rename productArity in pattern matcher to prodArity
@DarkDimius DarkDimius merged commit a75b21b into scala:master Nov 17, 2014
@allanrenucci allanrenucci deleted the patmatch/productArity branch December 14, 2017 19:24
WojciechMazur pushed a commit to WojciechMazur/dotty that referenced this pull request May 8, 2025
Backport "Warn on bad extensions of aliases" to 3.3 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants