Skip to content
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

Cleanup make-unsigned-like #3311

Merged
merged 3 commits into from Jan 24, 2020
Merged

Cleanup make-unsigned-like #3311

merged 3 commits into from Jan 24, 2020

Conversation

CaseyCarter
Copy link
Contributor

...per the direction of #3300. This PR consists of three commits:

  • A commit that renames make-unsigned-like to to-unsigned-like
  • A commit that changes make-unsigned-like-t from an exposition-only macro (invoked with parentheses) into an exposition-only alias template ("invoked" with angle brackets)
  • A commit that corrects "For an object x of type X, to-unsigned-like(x) is..." to "For an expression x".

I believe the change from () to <> in the second commit makes the occurrences of make-unsigned-like-t read better in the text - as well as increasing the intentional similarity with make_unsigned_t<meow> - but this change doesn't appear to have been discussed in the editorial meeting.

Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with this change, although I'd like to point out that making "make-unsigned-like-t" an alias template was not specifically approved by the editorial meeting.
It might actually be a good idea to gravitate towards alias template syntax for exposition-only type metafunctions.

@jensmaurer jensmaurer added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Nov 24, 2019
@jensmaurer
Copy link
Member

@CaseyCarter , this needs a rebase.

@CaseyCarter
Copy link
Contributor Author

@CaseyCarter , this needs a rebase.

So rebased.

@CaseyCarter
Copy link
Contributor Author

Rebased again.

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, Casey.

I'm strongly in favour of using angle brackets for the type transformation metafunction.

@jensmaurer jensmaurer removed the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Jan 24, 2020
@jensmaurer
Copy link
Member

Uh, it seems the other check-in created a conflict here, yet again. @CaseyCarter , please rebase.

@jensmaurer jensmaurer added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Jan 24, 2020
...instead of an exposition-only macro. In other words, it's used as `make-unsigned-like-t<meow>` instead of `make-unsigned-like-t(meow)`.
@CaseyCarter
Copy link
Contributor Author

Rebased harder.

@jensmaurer jensmaurer removed the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Jan 24, 2020
@jensmaurer jensmaurer merged commit 90ded44 into cplusplus:master Jan 24, 2020
@CaseyCarter CaseyCarter deleted the fox3300 branch January 24, 2020 18:10
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.

None yet

3 participants