Date: 2026-06-16
Re-evaluating a defnz at the REPL can fail to compile. The running
system has to decide what happens to the previously bound function.
If re-evaluating defnz fails to compile, preserve the previous
working function when one exists.
A failed experiment does not break the running system, which matches the exploratory REPL workflow. The failure surfaces as a diagnostic while the last good binding stays callable.
Unbinding the Var on failure was considered; it destroys working state mid-exploration for no benefit.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |