by HarHarVeryFunny · 4y ago · 0 comments
(defn foobar [] (undef-fn))
gives: 1. Caused by java.lang.RuntimeException
Unable to resolve symbol: undef-fn in this context
Attempting to call foobar: (foobar)
gives: 1. Unhandled java.lang.IllegalStateException
Attempting to call unbound fn: #'user/foobar
Environment info: ;; CIDER 1.3.0 (Ukraine), nREPL 0.9.0
;; Clojure 1.11.1, Java 18.0.2 (def undef-fn)
It should work after that.I guess the seamless continue without retry possibility could be useful if you are doing important side effects, but Clojure is quite functional unlike CL so it doesn't come up as much.