On Fri, Dec 06, 2013 at 07:00:53PM -0500, Palmer Cox wrote:
> Why not use Result instead of Option for these types of things? 

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.



Niko
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to