Fork me on GitHub
#clojure-uk
<
2019-06-28
>
yogidevbear06:06:10

'ello 'ello 'ello

practicalli_john09:06:13

Lots of interesting discussions about the #clojurex conference on the #clojurex channel. Would love to hear more thought and feedback

maleghast10:06:48

Morning All 🙂

dharrigan11:06:29

Must say, May isn't looking too cheerful on the BBC News home page.

yogidevbear13:06:39

On-topic question. What is the fundamental difference between using doall followed by prn vs just doing the prn:

user=> (def v [:foo :bar :baz])
#'user/v
user=> (->> v (doall) (prn))
[:foo :bar :baz]
nil
user=> (->> v (prn))
[:foo :bar :baz]
nil
user=>

dominicm20:06:31

if *print-lenth* is set, then prn won't traverse the whole structure while printing it

dominicm20:06:42

doall will always traverse the whole structure

Edward Hughes13:06:23

If I'm reading this right, (doall) forces eager evaluation so the entire data structure gets instantiated in memory.

yogidevbear13:06:23

I thought that was the case.

dharrigan14:06:24

man ,slack is unwell today

thomas14:06:55

yes, there is some kind outage today with slack.

practicalli_john21:06:16

Saturday's study group broadcast: https://youtu.be/pyIbP4BOGpQ A discussion 4Clojure challenge number 53. I think this is the hardest challenge I have come across, especially to do in a very functional way. I'll walk through a loop/recur approach (it gets a bit long) and then refactor to something a bit more functional.