This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-30
Channels
- # announcements (15)
- # beginners (99)
- # boot (15)
- # cider (105)
- # cljdoc (2)
- # cljs-dev (17)
- # clojure (132)
- # clojure-conj (1)
- # clojure-dev (5)
- # clojure-italy (19)
- # clojure-losangeles (2)
- # clojure-nl (20)
- # clojure-spec (70)
- # clojure-uk (50)
- # clojurescript (153)
- # core-logic (9)
- # cryogen (4)
- # cursive (6)
- # datomic (40)
- # duct (5)
- # figwheel-main (10)
- # fulcro (245)
- # hoplon (1)
- # jobs (3)
- # leiningen (12)
- # mount (8)
- # nrepl (11)
- # off-topic (1)
- # pathom (16)
- # pedestal (3)
- # planck (17)
- # re-frame (3)
- # reitit (8)
- # shadow-cljs (64)
- # spacemacs (3)
- # specter (20)
- # tools-deps (21)
Bore da
morning!
What would be your reasoning? Also why would you go for partial @U0525KG62?
I think partial communicates something. To me it communicates that a function needs some helpers (either data or other functions or both) bound in before being used in a map/filter/other. I'd expect a bit more work to be done in an anonymous fn. I know not all agree w/me though.
my reasoning is that I never really got partial
so I don't really understand it... I do however understand anonymous functions.
but @U0525KG62 explanation makes sense to me I have to admit, so maybe I might begin to understand it a bit more
ok thanks! I was similar too @U052852ES
there are two types of people - those who think auto-currying is a great idea and the other, wrong, people
@U0524B4UW Haha!
to me, partial
implies that you are expecting to support multiple arities.
partial will give you multiple arities, which is often not really what you want
I’m a big fan of partial
. Like @U0525KG62 I think it communicates something. In particular it communicates that the arguments are being applied left to right… i.e. there’s been some thought to the argument order.
There are several reasons to prefer one argument order to another, but one reason is that argument order often reflects the time things are known… e.g. you’ll know the config or the database connection, before you know the runtime arguments; so (partial my-f db-connection)
communicates that.
#(f %1 %2)
is easily mistaken for #(f %2 %1)
in the noise.
I like to think about argument order when writing functions, and partial helps you do that, and apply some consistency.
I think for things like db conns that I don't know all the args for yet I even use partials in python now tbh. However I see the merit of anon fns and use them if there's a need to be super declarative
I guess my gut use of partial is probably from reading your code then Rick haha
I think partial communicates something. To me it communicates that a function needs some helpers (either data or other functions or both) bound in before being used in a map/filter/other. I'd expect a bit more work to be done in an anonymous fn. I know not all agree w/me though.
I'm starting a beginners Clojure study group this weekend via the http://www.meetamentor.co.uk/ community, aimed at those just beginning Clojure or looking for a refresh. The MeetAMentor community is an off-shoot of the London Java Community. If you know anyone interested, please let them know. I will be sharing the content as we go along. Sign up form to join any of the MeetAMentor study groups - http://bcrw.typeform.com/to/VkChxI
if anybody is interested i have a seated ticket for the king crimson show in London on Saturday -- I'd sell it at face value of 90£ (ticket goes for 82£ iirc, the rest is venue fees) -- i bought it a while ago before knowing that a friend of mine wanted to go too, so i bought 2 more so that we could sit nearby and I now find myself with an extra one
I have a spare ticket to see Soft Machine in January (but, similarly, an ocean separates us 🙂 )
I used to play in a band that opened with Hazard Profile Part 1 🙂 Then we’d launch in to Led Boots by Jeff Beck. I still have to listen to those tunes side by side.
@bronsa @seancorfield Still not convinced of the new KC lineup, saw the double trio in 95/96 three times and it was just something else.
dunno, i only got to see them last year for the first time and they sounded insane -- a bit bummed out for the lack of Belew though
i was skeptical of the triple drummer setup but they (surprisingly? it's KC after all) made it work, so curious to see what the fourth drummer will add this time
Sooooo this appears to be the main “complaint” three drummers is too much, I’m not convinced. There are some 81/84 tunes that don’t completely work for me….. but I’d still go and see them live if I could.
Morning. 😐 Slightly surprised that the Venn diagram of Clojurians/King Crimson fans/Brompton owners seems to have a nontrivial overlap. Last saw KC at Shepherd's Bush Empire shortly after The ConstruKction of Light was released. Jolly good they were, too - but still wish I'd seen them when Bill Bruford was in the line-up. Would love to see them again, but there's no way I can be in London on Saturday!