AbhinavOmprakash / snitch

Snitch injects inline defs in your functions and multimethods. This enables a repl-based, editor-agnostic, clojure and clojurescript debugging workflow. It is inline-defs on steroids.
Other
137 stars 2 forks source link

defn* fails when body has multiple top-level forms #10

Closed AbhinavOmprakash closed 2 years ago

AbhinavOmprakash commented 2 years ago

(macroexpand-1 '(defn* foo [x]
                  (identity 1)
                  (identity x)))
; (clojure.core/defn
;  foo
;  [x]
;  (def x x)
;  (clojure.core/let
;   [result__44194__auto__ (identity 1)]
;   (def foo> result__44194__auto__)
;   result__44194__auto__))