Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I dont get exceptions

Name: Anonymous 2010-05-06 18:21

Most every programming language has exceptions, but I dont understand the need for them over regular error checking code. I took a Java course and we just used regular if statements to check input values from IO and it worked perfectly fine. Ive heard exceptions are not allowed in highly critical code as it makes unpredictable runtime logic. Can someone tell me what exceptions offer beyond error checking code that you could write on your own?

Name: Anonymous 2010-05-06 19:12

>>6
call/cc is indeed the most general (and theorethically elegant) solution to exception handling, but maybe it's a bit too general and costly for general-purpose exception handling. It also does not play too well with UNWIND-PROTECT-like constructs, without crippling one construct or the other.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List