I'd actually like to see %(...) become (partial ...), as I think people associate % with anonymous functions. Which is why I chose (% ...), as it's close to what I wish we had.
I get your point though, and I don't disagree. But, this does keep coming up, so I think a shorter syntax for partial would be nice, whether it's %(), #&() or whatever. Cheers, Jay On Tue, Jun 19, 2012 at 2:52 PM, Timothy Baldridge <tbaldri...@gmail.com> wrote: >> uh, it's going to do what you expect... >> >> user=> (def % partial) >> #'user/% >> user=> (map #(inc %) [1 2 3]) >> (2 3 4) > > My point was that you have overloaded the meaning of the % symbol. If > someone says "what does % mean in clojure". You can say "it's > shorthand for the first argument in the shorthand version of the > anonymous function definition.", now you have to say "well it depends > on the scope" > > Please, don't ever take reader macros and re-define them out of scope > to mean something else. It just confuses people and makes the code > harder to read. > > Timothy > > -- > 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 are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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 are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en