plumatic / plumbing

Prismatic's Clojure(Script) utility belt
1.49k stars 108 forks source link

Annotate defnk/fnk meta with their :file #127

Open emidln opened 8 years ago

emidln commented 8 years ago

It'd be nice to grab the source for a fnk during development or for debugging. I wrote https://gist.github.com/f2ee7ec7753bb83de1b974c919e1eb0b to do so, but it is very much a hack. Can we annotate the :file metadata of at least defnk (if not fnk) so that (a normal clojure.repl/source) would work?

w01fe commented 8 years ago

I believe defnk does have the file, line, and column, and source seems to work for me -- can you please show a transcript of the problem? (I also don't think this stuff belongs on a fnk, just the defnk var).