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

explain why typealias is complicated #423

Merged
merged 1 commit into from
May 21, 2018
Merged

Conversation

weissi
Copy link
Member

@weissi weissi commented May 21, 2018

CC @BasThomas , forgot to address your comment before merge.

Motivation:

We should explain why this typealias

public typealias RangeType<Bound> = CountableRange<Bound> where Bound: Strideable, Bound.Stride: SignedInteger

isn't just

public typealias RangeType = CountableRange

and that's because SR-6963.

Modifications:

added a comment explaining why

Result:

code easier to read

Motivation:

We should explain why this typealias

    public typealias RangeType<Bound> = CountableRange<Bound> where Bound: Strideable, Bound.Stride: SignedInteger

isn't just

    public typealias RangeType = CountableRange

and that's because SR-6963.

Modifications:

added a comment explaining why

Result:

code easier to read
@weissi weissi requested a review from Lukasa May 21, 2018 18:23
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Good call. No need for @normanmaurer to come back from his day off early to review this, I'll merge directly.

@Lukasa Lukasa added the semver/patch No public API change. label May 21, 2018
@Lukasa Lukasa added this to the 1.7.1 milestone May 21, 2018
@Lukasa Lukasa merged commit 6e73790 into apple:master May 21, 2018
@BasThomas
Copy link
Contributor

👍

Sent with GitHawk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants