Arc Forum
new
|
comments
|
leaders
|
submit
login
1 point
by
almkglor
6130 days ago |
link
|
parent
arc> (on-err (fn (c) 'oops) (fn () (do1 (/ 8 0) (prn "here")))) here oops
Probably?
1 point
by
bogomipz
6130 days ago |
link
Since the division fails, do1 never gets to execute the prn. Both results shown in the original post seem right to me.
-----
1 point
by
almkglor
6129 days ago |
link
The comment specifically bemoans that the code after the error isn't executed - and that this particular fact isn't, exactly, what pg/rtm intended.
-----
1 point
by
randallsquared
6128 days ago |
link
Yeah, I think the only scenario that makes sense is that on-err was supposed to do a CL-like restart without any actual condition system.
-----