Ignoring Errors
Easy to understand the concept but only sometimes a good idea
(defun safe-division (a b)
(ignore-errors (/ a b)))
(safe-division 4 2)
2
(safe-division 4 0)
NIL
#<DIVISION-BY-ZERO @ #x204d9562>
Previous slide
Next slide
Back to first slide
View graphic version