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?
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).
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 leastdefnk
(if notfnk
) so that (a normalclojure.repl/source
) would work?