Fork me on GitHub
#vim
<
2017-07-08
>
dominicm08:07:04

https://github.com/tpope/vim-fireplace/pull/301 I decided this was sufficiently bothering me.

dominicm12:07:05

Writing vimscript feels awkward after writing clj so long, the "natural" way to write many of these functions is:

(->
   {:op :eval}
   (assoc :code (format-doc 'foo.bar/a))
   (add-pprint)
   (add-boilerplate) ;; id, ns, session, etc.
   (doto (register-collection-routine!))
   (collect-all)
   (rollup-responses))

dominicm12:07:51

Instead there seems to be several layers of functional calls which add more options to further function calls, and something pseudo-generic (read: not generic) that eventually handles the options.