Fork me on GitHub
#clojurescript
<
2021-11-29
>
Sampo Toiva08:11:25

@nicdaoraf, in this case, I'd do something like add to my .lein/profiles.clj something like:

{:user {:dependencies [postmortem "0.5.0"]
        :injections [(require '[postmortem.core :as pm])]}}
Then, when user profile is loaded, you can invoke functions using pm alias.

anonimitoraf08:11:48

Oh thanks, I'll try it out! Didn't know about the :injections key

anonimitoraf08:11:45

Damn, really cool library btw! I've definitely wished in the past that I had a tool like that^. I do see a pitfall though, if a local has the same identifier as some namespace var/fn, then the latter would get overridden right?

Sampo Toiva09:11:04

@nicdaoraf yeah, it can be a problem: https://github.com/vvvvalvalval/scope-capture#caveats However, I haven't found it to be a problem in practise and you can take measures to prevent it if needed.

anonimitoraf09:11:17

Ah! I missed that. I see. I'll try it out one of these days, thanks