(defmacro unless [test ... body] ~(if ,test null (do ,@body))) (def safe-inverse (fn [x] (unless (= x 0) (/ 1 x)))) (str safe-inverse) (= (str safe-inverse) (str (fn [x] (if (= x 0) null (do (/ 1 x)))))) (= (hashes/digest "sha256" safe-inverse) (hashes/digest "sha256" (fn [x] (if (= x 0) null (do (/ 1 x)))))) [(safe-inverse 0) (safe-inverse 4)]