> (Others: feel free to chime in, we've been back-and-forth on this issue in > conversation since ... years now?)
There are other options. Lisp implementations (where cyclic data structures are no exception) tend to implement equal in a cycle-safe way. Typically, you'd have a quick, unsafe version that keeps a depth count, and gives up at a given depth, falling back to a more expensive, cycle-aware implementation. When generating cmp as glue directly in the object files, you probably don't want to do such a thing, but with interpreted comparison through shapes, it wouldn't be hard to do. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
