-
Notifications
You must be signed in to change notification settings - Fork 161
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
Make third argument of DeclareRepresentation
and NewRepresentation
optional, and document that it and the fourth argument are (and always were) unused
#4519
Conversation
be720cb
to
8bff08d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the changes, and have made just one comment concerning a formulation.
Concerning the newly inserted # TODO
comments:
I think they might be confusing for readers in the future.
The filters in question have not been used before, in particular they were not intended to be automatically implied by the newly created filters.
lib/type.g
Outdated
## The admissible positions resp. component names of <A>super</A> need not | ||
## be listed in <A>slots</A>. | ||
## The optional third and fourth arguments <A>slots</A> and <A>req</A> | ||
## are unused (and never were) only provided for backwards compatibility. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps "are (and always were) unused and only provided for backwards compatibility"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, that's much better. Fixed now
8bff08d
to
8a5297d
Compare
DeclareRepresentation
and NewRepresentation
optional, and document that it and the fourth argument are (and always were) unused
DeclareRepresentation
and NewRepresentation
optional, and document that it and the fourth argument are (and always were) unusedDeclareRepresentation
and NewRepresentation
optional, and document that it and the fourth argument are (and always were) unused
- document that their 3rd and 4th arguments are unused - make the 3rd argument optional (the 4th already is)
... by printing a trailing newline, just like `Info` does
8a5297d
to
d18d279
Compare
The reason I added those TODO comments is because without them, it feels as if some information is lost... and yeah, I know these were not implied, but I still wonder why? I guess this is the same underlying issue as in PR #4499: Why doesn't On the other hand, we have had plenty of ranking issues (esp. with "hidden implications" disabled) because people used (and use) representations in method argument filters, unaware that these filters lack many seemingly "obvious" implications. Anyway, I don't think this particular instance is worth arguing about a lot, so I just dropped these comments now shrug |
See the commit messages for details.
See also issues #4409 and #1042