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

Additional generic types in constructors #31360

Closed
bergwerf opened this Issue Nov 12, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@bergwerf

bergwerf commented Nov 12, 2017

It would be nice to have

Map.fromIterable<T>(Iterable<T> iterable, {K key(T element), V value(T element)});

Rather than

Map.fromIterable(Iterable iterable, {K key(element), V value(element)});

Since it takes out some very useful type checking and inference.

@eernstg

This comment has been minimized.

Show comment
Hide comment
@eernstg

eernstg Nov 13, 2017

Member

This is a known proposal, and likely to happen. The issue created for collecting comments on this idea is here: #30355.

Member

eernstg commented Nov 13, 2017

This is a known proposal, and likely to happen. The issue created for collecting comments on this idea is here: #30355.

@natebosch

This comment has been minimized.

Show comment
Hide comment
@natebosch

natebosch Dec 22, 2017

Member

Closing in favor of #26392 and #26391

Member

natebosch commented Dec 22, 2017

Closing in favor of #26392 and #26391

@natebosch natebosch closed this Dec 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment