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

Prefer generic parameters to Scheduler existentials. #410

Closed
wants to merge 1 commit into from

Conversation

andersio
Copy link
Member

No description provided.

@andersio andersio changed the title Prefer generic parameters over Scheduler existentials. Prefer generic parameters to Scheduler existentials. May 26, 2017
@sharplet
Copy link
Contributor

What's the benefit of this change?

@andersio
Copy link
Member Author

No apparent benefit for now. Ideally this would allow the compiler to "see through" the interface and perform specialisation. But it doesn't because we do not have cross-module optimisation (yet).

Auto-promotion of existentials to generic parameters is one of the ABI stability items, btw.

@sharplet
Copy link
Contributor

Given that it makes the method signatures a little harder to read, I feel like I'm 👎 on this for now

@mdiep
Copy link
Contributor

mdiep commented May 26, 2017

Given that it makes the method signatures a little harder to read, I feel like I'm 👎 on this for now

I agree. Let's do this when/if there's some benefit.

@andersio andersio closed this May 26, 2017
@andersio andersio deleted the async-operator branch May 27, 2017 21:58
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