On 12/6/13 6:46 PM, Niko Matsakis wrote:
I agree. I've personally been moving towards `Result<T, ()>` in
preference to `Option<T>` when one of the branches reflects an
error. It's worth noting that the compiler could still optimize this
into a pointer-null-pointer representation, though I doubt it does so
now.

IIRC it does.

Patrick

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to