On Nov 1, 2013, at 12:59 PM, Marvin Löbel <[email protected]> wrote:

> Maybe a abbreviation of variant would work:
> 
> - `ok_var()` and `err_var()`
> 
> Seems to read nice at least:
> 
> ~~~
> res.ok_var().get();
> res.err_var().get();
> res.err_var().expect("...");
> ~~~

"var" here makes me think "variable".

My two cents says go with `res.ok().get()` and `res.err().get()`. It's 
unfortunate that `ok()` can be read as if it were `is_ok()`, but I think people 
will get used to it pretty fast.

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

Reply via email to