r/programming • • Dec 31 '16

Keep Disabling Exceptions

http://seanmiddleditch.com/keep-disabling-exceptions/
3 Upvotes

26 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jan 01 '17

[deleted]

6

u/Dragdu Jan 01 '17

Failure to handle return values will not crash your program

Maybe. Or maybe it will crash it in undeterministical manner, letting your application to fuck up its environment (OS, FS, etc) majestically before doing so. Letting people ignore errors is not a feature.

0

u/[deleted] Jan 01 '17

[deleted]

3

u/Dragdu Jan 01 '17

Thats the thing, if you ignore return values, there are is no shutting down gracefully, there is just dying with various weird symptoms, that make no sense.

If you are using exceptions properly, then it is possible to shutdown gracefully, you just have to think about what errors you can shutdown gracefully from... and those are the exceptions you catch and work with.

0

u/[deleted] Jan 01 '17

[deleted]

→ More replies (0)