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

RFC, NFC: refactor ranges to be nested templates #535

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

nwf-msr
Copy link
Contributor

@nwf-msr nwf-msr commented May 30, 2022

This way, we don't have to specify a Parent when we're just interested in
Pipe-ing things together.

We could have called these inner classes Apply and left the Pipe implementation
alone, but it's probably better to call them Type and adjust the Pipe code.

This commit is absolutely best reviewed ignoring whitespace changes!

This commit also conflicts, for trivial reasons, with #530. I would be tempted to wait until that has landed and then commute this back across that if we want this.

@nwf-msr nwf-msr requested a review from mjp41 May 30, 2022 23:11
@mjp41
Copy link
Member

mjp41 commented May 31, 2022

So the nested type was my initial plan for how to do this. I discussed with @davidchisnall and he suggested the default and inner using.

I implemented both and went with the using due to the smaller diff.

I do find the occasional <> annoying, and I think the nested type is slightly clearer code. But I'm not sure if it is worth changing.

This way, we don't have to specify a Parent when we're just interested in
Pipe-ing things together.

We could have called these inner classes Apply and left the Pipe implementation
alone, but it's probably better to call them Type and adjust the Pipe code.
@nwf nwf force-pushed the 202205-range-nested-templates branch from b1c3003 to 89fc430 Compare May 31, 2022 21:33
@nwf-msr nwf-msr requested a review from davidchisnall June 1, 2022 10:21
Copy link
Member

@mjp41 mjp41 left a comment

Choose a reason for hiding this comment

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

I am happy with this. I don't have strong feelings about it either way. This is more how I originally thought about types, so I'll approve.

@nwf-msr nwf-msr merged commit 392acff into microsoft:main Jun 6, 2022
@nwf nwf deleted the 202205-range-nested-templates branch June 9, 2022 12:52
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