On 9/20/10 10:59 AM, Graydon Hoare wrote:
Yeah. This is a bug. At the moment comparisons in general only work between scalar types (int, uint, u8, char). Strings, records, tags, vectors are presently non-comparable. And not in a nice way: in a bug-thrown-by-compiler way.
To add to this, the plan is to make equality structural, like OCaml. The typechecker currently allows equality on all types, in anticipation of this feature working someday, but there currently isn't backend support for anything other than the scalar types Graydon mentioned.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
