Skip to content

impl<A, B> FromIterator<(A, B)> for (Vec<A>, Vec<B>)? #43242

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

Closed
Kixunil opened this issue Jul 14, 2017 · 3 comments
Closed

impl<A, B> FromIterator<(A, B)> for (Vec<A>, Vec<B>)? #43242

Kixunil opened this issue Jul 14, 2017 · 3 comments

Comments

@Kixunil
Copy link
Contributor

Kixunil commented Jul 14, 2017

Recently /u/shortstomp asked on Reddit about this example.

The impl seems useful to me and I'm willing to implement it (possibly with more fields, e.g. A..J) if it's considered a good idea.

I've never tried hacking std, so why not try it? :)

@petrochenkov
Copy link
Contributor

This is pretty much rust-lang/rfcs#870 rust-lang/rfcs#930.
It would be really nice to revive that RFC as a part of the ergonomic initiative.

@Kixunil
Copy link
Contributor Author

Kixunil commented Jul 15, 2017

Yeah, this is practically the opposite of rust-lang/rfcs#870.

@Mark-Simulacrum
Copy link
Member

Going to go ahead and close since I think this would need an RFC, see rust-lang/rfcs#930 for the RFC tracking issue.

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

No branches or pull requests

3 participants