Someone once mentioned that partials are more performant. i.e. (partial
println "foo") is better than #(println "foo" %). I can't remember why,
something about creating classes under the covers, I believe. Hopefully
someone can chime in.

Personally, I used to use #(... %) due to it being less characters. I
didn't really feel strongly about it, and once someone mentioned that
partial was 'better' I switched. However, 'partial' is a bit long, so I
always (def % partial) - and my code ends up looking like (% println "foo")

Cheers, Jay

On Wed, May 16, 2012 at 1:57 PM, Murtaza Husain <
murtaza.hus...@sevenolives.com> wrote:

> Hi,
>
> What is the idiomatic use of partial. I understand it helps create
> closures, however the reader notation also allows to the same. So when
> should partial be use dover other forms of creating functions.
>
> Thanks,
> Murtaza
>
>  --
> 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

Reply via email to