On 13-06-28 11:23 AM, Niko Matsakis wrote:
Specificity is the cost of non-virtual dispatch. However, if it is truly undesirable in some cases, we can eventually permit you to return `~Iterator<int>`, once ~-objects work properly.
This is interesting. I assume we'd want these to be Iterator<> cast to &Iterator<>, no? But we can't really do that in a return value; we'd have to return the Iterator and have the caller cast it to &Iterator<>. ~-allocating here seems a bit much..
-Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
