On Wed, Jul 24, 2013 at 12:15 PM, Evan Martin <[email protected]> wrote: > It would seem more natural to me for it to return an Option<u8>, but that > leads to two questions: > > 1) Is it more Rusty to use types like this instead of sentinels? My > aesthetics aren't adapted to Rust yet. >
Yes. Option<u8> is the correct choice here. The old IO code (all of the stuff in std::io) is crufty and needing to be replaced (work on the new rt is progressing quite well). _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
