Fork me on GitHub
#clojure-europe
<
2022-12-30
>
slipset07:12:05

Morning

🙌 1
dharrigan08:12:43

Good Morning!

🙌 1
genRaiy09:12:38

Good morning

🙌 2
😻 1
genRaiy09:12:05

One of the most elegant vegan restaurants I’ve had the pleasure to dine at. The food was suitably delicious.

Adam Helins08:01:00

Oh yeah, I'd return to Cologne just for that restaurant!

😍 2
orestis09:12:07

Good morning!

🙌 1
thomas13:12:23

morning

🙌 1
otfrom14:12:04

Morning

🙌 1
borkdude14:12:30

morning

🙌 1
lread14:12:08

morning!

🙌 2
Ben Sless15:12:19

Morning (evening)

dharrigan15:12:12

What are people's thoughts on the as-> macro? I don't see it used that much, but see it's usefulness.

pavlosmelissinos15:12:42

In solo projects I use it like this:

(-> {:foo :bar}
    (as-> m (merge {:baz :quux} m)) ;; map is not in the first position
    (update :foo name))  ;; map is back to the first position
Always within a -> However I've found that people usually find it weird, so I avoid it in team projects edit: fixed silly example

☝️ 2
otfrom14:12:56

I use it a lot in tech.ml.dataset pipelines esp when there is a reduce step

Jakub Holý (HolyJak)17:12:22

My thoughts are as yours. Used rarely but really handy when you need it. Though it may indicate you are mixing too many operations of different kinds in one pipeline.

2
otfrom17:12:12

tmd is a bit odd as sometimes it is a single map like thing and sometimes it is a sequence like thing

👍 1
dharrigan10:01:03

Thanks everyone for the answers. Good food for thought.