This seems rather heavy-weight to me. I’d much prefer if such a thing was 
opt-in, e.g. by a function attribute that says the return value must be handled.

-Kevin

On Oct 16, 2013, at 2:12 PM, Patrick Walton <pwal...@mozilla.com> wrote:

> On 10/16/13 1:44 PM, Bill Myers wrote:
>> What about the idea of making Result cause task failure if it is
>> destroyed in the error case? (as opposed to destructuring it)
> 
> For a long time now I've been wanting to make unused non-unit return values a 
> warning. I think this would be a perfect time to do that...
> 
> Patrick
> 
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev

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

Reply via email to