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

Inject in line defs inside let bindings, and not after #2

Closed AbhinavOmprakash closed 2 years ago

AbhinavOmprakash commented 2 years ago

in this case, both x and y won't be bound

(let [x 1
       y (throw Exception)]
(def x x)
(def y y))

in this situation, x will be bound but y won't. this is more useful

(let [x 1
       _ (def x x)
       y (throw Exception)
       _ (def y y)])