News for hackers. Stuff that matters.
Re:Rust's 2017 Roadmap by steveklabnik on Monday February 06, 2017 @06:33PM (#13585388)
It helps with the orphan rule, as everyone would be importing the trait from std. From/Into are the same kind of traits. That is, the idea is that the rand crate would implement std::rand::Random, and so would some rand2 crate, and then I could write my own crate saying

    fn random<R: std::rand::Random>(r: R)
and it would work with either one. No need for newtypes.

I also might be missing something.

There are no comments on this comment yet.