Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-19 Thread Alex Miller
I'm not convinced this is even a good idea (but Rich is the ultimate judge). None of the -in fns repeat paths like that so this makes assoc and assoc-in similar but makes assoc-in / update-in etc inconsistent. On Friday, August 19, 2016 at 1:50:41 PM UTC-5, Łukasz Kożuchowski wrote: > > On 08/

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-19 Thread Łukasz Kożuchowski
On 08/18/2016 09:46 PM, Andy Fingerhut wrote: Anyone who has created a free JIRA account can vote on Clojure tickets. Wow. That's nice. Just voted. Thanks for the info. I thought it's only for contributors. I'm not really complaining, just wanted to know what's going on and possibly bump th

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-18 Thread Andy Fingerhut
Anyone who has created a free JIRA account can vote on Clojure tickets. High-voted tickets get Alex Miller's attention so he can try to make progress on them, with some level of priority over tickets without votes. Note that in some cases, 'making progress' can simply mean 'declined sooner, rather

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-18 Thread Paulus Esterhazy
Just this week I have wished for an extended version of `assoc-in` more than once. The reason is convenience, e.g. in the context of a ring middleware: (assoc-in response [:headers "Location"] "/homepage" [:session :user-id] user-id) Extending `assoc-in` would also achieve parity with `asso

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-17 Thread Timothy Baldridge
When I see mailing list posts like this I like to play the devil's advocate a bit (at least in my own mind) and try to find problems with including a given patch in Clojure. A few things to consider: 1) There are really three answers to patches: "yes", "no" and "not now". That is to say, because a

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-15 Thread Łukasz Kożuchowski
Thanks for the tip. I imagine the patch author is much more sad (it's been one year...). Łukasz Kożuchowski -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-14 Thread Andy Fingerhut
Of course you can copy the newer definition of assoc-in into your own projects and use it if you like, but that probably doesn't prevent your little bit of sadness. Andy Sent from my iPhone > On Aug 14, 2016, at 5:27 AM, Łukasz Kożuchowski > wrote: > > I am a little sad now. Thanks for expl

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-14 Thread Łukasz Kożuchowski
I am a little sad now. Thanks for explaining! Łukasz Kożuchowski On Aug 13, 2016 4:56 PM, "Andy Fingerhut" wrote: > That ticket is in a state called "Triaged", which means that a screener > (most likely Alex Miller) thinks the issue is good enough for Rich Hickey > to take a look at it some tim

Re: Multiple key-value pairs in assoc-in (old issue)

2016-08-13 Thread Andy Fingerhut
That ticket is in a state called "Triaged", which means that a screener (most likely Alex Miller) thinks the issue is good enough for Rich Hickey to take a look at it some time. Rich probably hasn't looked at it yet, because if he had, it would have likely been changed to Declined or Vetted. As f

Multiple key-value pairs in assoc-in (old issue)

2016-08-13 Thread Łukasz Kożuchowski
Hello, Currently assoc-in does not support multiple key-value pairs the way assoc does. user=> (assoc {} :a 1 :b 2) {:b 2, :a 1} user=> (assoc-in {} [:a :b] 1 [:c :d] 2) ArityException Wrong number of args (5) passed to: core$assoc-in clojure.lang.AFn.throwArity (AFn.java:437) It appears a