On 01/12/2013 04:51 AM, Matthieu Monrocq wrote:


On Sat, Jan 12, 2013 at 3:21 AM, James Gao <[email protected] <mailto:[email protected]>> wrote:

    and how about these two case:

    a) fn foo<T1: Ord, Eq, Hash; T2: Ord, ::Eq> (...) {...}

    b) fn foo<T1: Ord + Eq + Hash, T2: Ord + ::Eq> (...) {...}


Really likes b), + looks especially suiting since we are adding up requirements.

Agree, + looks like a nice solution.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to