Fork me on GitHub
#clojure-europe
<
2021-07-29
>
anthony-galea05:07:24

Morning

☀️ 9
djm05:07:48

👋

🌅 3
dharrigan06:07:14

Good Morning!

🌅 3
RAMart07:07:15

👋

🌅 3
maleghast09:07:10

Guten Tag meine Freunde!

Ben Hammond09:07:47

> the sun is the same, in a relative way > but you're older

🌑 6
💕 3
reefersleep22:07:07

I was listening to DSOTM yesterday and today!

RAMart10:07:58

Cool: clojure.tools.namespace.repl/refresh changes meta data:

(:file (meta #'-main))
;; => "/Users/ingo/Projects/Playground/hello-cljsc/src/hello_cljsc/core.clj"

(refresh)
:reloading (hello-cljsc.core hello-cljsc.core-test)
;; => :ok

(:file (meta #'-main))
;; => "hello_cljsc/core.clj"
😡 :face_with_symbols_on_mouth:

vemv17:07:03

generally that's not the case t.n performs a clojure.core/load (the same primitive clojure.core/require uses), no more no less. It doesn't go as far as touching vars etc. maybe there's a small exception for :file but I wonder what difference would it make. Both are values that slurp will happily accept.

vemv17:07:25

iirc CIDER can also get :file metadata changed from absolute to relative as you send forms to the repl. I wouldn't assume many details about :file

RAMart05:07:18

Thanks for digging a little deeper. > Both are values that `slurp` will happily accept Yes, it will accept both. But the probability of success decreases rapidly in the latter case. 😜 Funny enough, a failing slurp of :file is where my journey started. Thanks again for spending some time on this!

👍 2
vemv13:07:49

you're right that slurp won't work, as it lacks src/ however (-> x io/resource slurp) will work. treating namespaces as resources is definitely idiomatic

👍 2
2
RAMart13:07:25

Thanks again @U45T93RA6 and have a nice week-end! 🍻

vemv13:07:19

🍻 always!

Fahd El Mazouni14:07:24

Good morning :flag-eu: peeps! just posted a question on #beginners would appreciate your input ! Is there a "clean" way to use a higher version of java library that is also a transient dependency of another package ? (using the newer version breaks the package)

Michaël Salihi21:07:52

Good morning! #hammocktime

aw_yeah 3
hammock 8
🦈 2