This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-30
Channels
- # aleph (25)
- # announcements (20)
- # babashka (29)
- # babashka-sci-dev (12)
- # beginners (27)
- # biff (3)
- # clojure (29)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojurescript (3)
- # clr (5)
- # code-reviews (4)
- # data-science (7)
- # datahike (6)
- # datascript (3)
- # emacs (9)
- # fulcro (5)
- # graalvm (10)
- # malli (15)
- # nbb (7)
- # off-topic (17)
- # pathom (9)
- # polylith (4)
- # practicalli (15)
- # reitit (3)
- # releases (2)
- # rum (1)
- # shadow-cljs (73)
- # squint (34)
- # tools-deps (3)
- # xtdb (11)
One of the most elegant vegan restaurants I’ve had the pleasure to dine at. The food was suitably delicious.
Any guesses @U1Z4D5SSV ?
What are people's thoughts on the as->
macro? I don't see it used that much, but see it's usefulness.
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
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