I wonder how much of a good idea would be to refactor a lib out of cider-nrepl
, exposing common repl functionality (like the brand new spec explorer)
@richiardiandrea I've been thinking about this too. cider-nrepl could be uh, cider? (and cider could be cider.el!).
https://github.com/tpope/vim-fireplace/pull/80 this was catching onto something similar via https://github.com/ctford/poker
The problem with macro-like destructuring is that you lose a lot: comments, formatting, various readers (discard, tagged, conditional), sets and maps original order is not preserved, numbers representations are lost (base N, ratios). Been there somehow done that.
wow, I actually did not know that nRepl
was the responsible of printing a lot of stuff: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/print_method.clj
and TIL about MultiFn
@richiardiandrea originally that was an optional namespace.
@cgrand yep, but core concept holds. rewrite-clj(s) is pretty great in preserving whitespace & such