How does it work in Clojure?
Attempting to compile/evaluate this:
(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