On Nov 18, 2011, at 4:51 PM, Niko Matsakis wrote:

>   1. You know exactly what the failure means and an exact, transparent
>      recovery mode. For this we recommend simply modeling the recovery
>      mode you want for expected-but-rare circumstances as arguments
>      passed *into* the callee, and handled at the site of
>      circumstance. Think of how O_CREAT and O_TRUNC work in ::open.
>      We have these wonderful tag things for passing in such options,
>      they can be highly structured if necessary.

This is a good point, however.  Moving the recovery into the code itself is 
elegant, when it applies; I'm not sure how much this generalizes.  Have to 
think about it. 


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

Reply via email to