Skip to content

Provide overloads for IncrementalValue[s]Provider.Combine #78316

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

StephaneDelcroix
Copy link

@StephaneDelcroix StephaneDelcroix commented Apr 25, 2025

while combining more than 2 providers, the returning tuple is very confusing, chaining Left.Left.Left etc.

this adds more combine overloads that returns a flat tuple

while combining more than 2 providers, the returning tuple is very confusing, chaining Left.Left.Left etc.

this adds more compine overloads that returns a flat tuple
@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner April 25, 2025 11:14
@ghost ghost added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 25, 2025
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Apr 25, 2025
@StephaneDelcroix
Copy link
Author

I'm using those as extensions methods

Copy link
Member

@jaredpar jaredpar left a comment

Choose a reason for hiding this comment

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

This is an API change and needs to go through API review.

@CyrusNajmabadi
Copy link
Member

@StephaneDelcroix Can you write up an API suggestion on this? I'd be willing to try to shepherd it through (no promises of course). I do find teh x.Left.Right.Left goop to be annoying myself. So having a small set of helpers here seems reasonable.

@333fred
Copy link
Member

333fred commented Apr 25, 2025

@333fred 333fred marked this pull request as draft April 25, 2025 19:03
@333fred
Copy link
Member

333fred commented Apr 25, 2025

Moving to draft until there is an API review session for this.

@StephaneDelcroix
Copy link
Author

StephaneDelcroix commented May 2, 2025

@dotnet-policy-service dotnet-policy-service bot added the Needs API Review Needs to be reviewed by the API review council label May 2, 2025
@StephaneDelcroix StephaneDelcroix changed the title Combine up to 5 providers Provide overloads for IncrementalValue[s]Provider.Combine May 2, 2025
- fix tuple element names
- add overload up to 7+rest providers
@StephaneDelcroix
Copy link
Author

I have no idea what to do with the build errors...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee. Needs API Review Needs to be reviewed by the API review council untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide overloads for IncrementalValue[s]Provider.Combine accepting more than 2 providers
4 participants