On Sat Nov 19 20:50:48 2011, Graydon Hoare wrote:
>> Oh, and a simple example where it does not work: you do not want to deal
>> with scenario "user has suddenly removed the USB key" smack in the
>> middle of your code for, say, serializing your data structure to a
>> compressed output stream for said key. You want to do this at higher
>> level.
>
> No. That's a category #2 error. You moved the goalposts. Nobody
> involved in any of the libraries is able to predict that occurrence.
> It's an externally generated, byzantine fault. Those can happen
> anywhere and no API beyond "crash the subsystem and restart it" can
> sensibly defend against them. That's why we have "failure". Same as a
> divide-by-zero or whatever.

You are absolutely right. I was just giving a quick counter-example to 
show that we cannot handle everything at low-level.

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

Reply via email to