On Thu, Jul 18, 2013 at 3:28 PM, Benjamin Striegel
<[email protected]> wrote:
> I think at the least we should offer a #[deriving(Basics)] for use on public
> types so that people aren't forced to memorize "Eq Ord TotalOrd TotalEq
> IterBytes Clone" (unless we can find a silly SFINAE-esque acronym...
> http://www.wordsmith.org/anagram/anagram.cgi?anagram=eottic ).

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.

The only two that rarely require any extra consideration are
`Clone`/`DeepClone`, since they should be on almost every type without
a destructor.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to