Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Kiro
· 12y ago · 0 comments
What's the difference between option 3 and an exception?
Comments
[–]
klodolph
12y ago
Option 3 is like calling abort() in C: you can't stop it from killing the process, unlike exceptions which can be caught and handled.
[–]
Kiro
OP
12y ago
But why would you want to catch and handle division by zero? Seems like the normal thing an exception should do in that case is to kill the process.
[–]
nhenezi
12y ago
You can catch exceptions