Content deleted Content added
Pineconius (talk | contribs) →[[Python (programming language)|Python]]: Added 'else' syntax |
No edit summary |
||
Line 127:
// This optional section is executed upon termination of any of the try or catch blocks above
}
</source>
=== [[Common Lisp]] ===
<source lang=lisp>
(ignore-errors (/ 1 0))
(handler-case
(progn
(print "enter an expression")
(eval (read)))
(error (e) (print e)))
</source>
|