Fork me on GitHub
#unrepl
<
2017-07-09
>
richiardiandrea07:07:38

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)

dominicm11:07:17

@richiardiandrea I've been thinking about this too. cider-nrepl could be uh, cider? (and cider could be cider.el!).

cgrand15:07:54

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.

richiardiandrea15:07:06

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

richiardiandrea15:07:10

and TIL about MultiFn

dominicm17:07:43

@richiardiandrea originally that was an optional namespace.

dominicm17:07:14

@cgrand yep, but core concept holds. rewrite-clj(s) is pretty great in preserving whitespace & such