On Thu, Jul 18, 2013 at 3:39 PM, Corey Richardson <[email protected]> wrote:
> On Thu, Jul 18, 2013 at 3:33 PM, Daniel Micay <[email protected]> wrote:
>> Plenty of types can't actually be ordered, and in *many* cases not all
>> fields should be considered for equality/ordering and they may or may
>> not be listed in the order the comparison should try.
>>
>
> I've wanted like #[deriving(Ord(a, b), Eq(b, c))] which would define
> not only which fields are used for comparison but also the order of
> the fields for... ordering.

That can work if it's explicit, but if it's implicitly defined it will
often be wrong (in the case of Ord) or slow (for Eq).
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to