3 ms·
I saw this a lot as a kid. I never understood the difference between abort and fail. I'm guessing that fail also sends failure messages?
by jdlyga 4y ago
I saw this a lot as a kid. I never understood the difference between abort and fail. I'm guessing that fail also sends failure messages?
- justsomehnguy 4y ago> I'm guessing that fail also sends failure messages? Yes. Abort just... aborts everything, potentially dropping you to the prompt. Fail responds with an error and let the software handle what to do now.
- twic 4y agoabort: panic!("just stop everything"); fail: return Err("let someone try to handle this");
- bitwize 4y agoAbort: stop run, return to DOS Retry: retry the operation (great after you put a floppy in the drive) Fail: return from system call with an error code, program keeps running
- mistertoolbox 4y agoI once saw the Abort, Retry, Fail prompt on a computer at my mom's office as a kid while it was reading a floppy disk and, being ~8 years old or so, pressed F. The A: drive went missing when it dumped back to the prompt and I got blamed. Looking back after reading the article, guess I was a victim of bad timing and an already failing drive, but that moment instilled a _healthy_ fear of the Fail option for me.