3 ms·
Clojure allows this very brief copypasta `(defmacro dbg [x] `(let [x# ~x] (println "dbg:" '~x "=" x#) x#))` https://blog.jayway.com/2011/03/13/dbg-a-cool-little
by aitchnyu 6y ago
Clojure allows this very brief copypasta `(defmacro dbg [x] `(let [x# ~x] (println "dbg:" '~x "=" x#) x#))` https://blog.jayway.com/2011/03/13/dbg-a-cool-little-clojure-macro/ https://blog.jayway.com/2011/03/13/dbg-a-cool-little-clojure...
Wish Python has this by default though.