Sorry, I was not precise enough. I meant why is this pattern not used in 
all of *clojure.core*.

Every function that takes a variable number of arguments could use it but I 
only saw it in the mentioned cases.

On Tuesday, October 2, 2012 10:29:15 PM UTC+2, Tamreen Khan (Scriptor) 
wrote:
>
> My guess is that it's useful in the core functions which are more 
> heavily used. Otherwise you're getting into premature optimization if 
> you use it in any of your own functions without profiling it first. 
>
> On Tue, Oct 2, 2012 at 4:18 PM, Balint Erdi <balin...@gmail.com<javascript:>> 
> wrote: 
> > Makes sense but why don't we have it in all possible places then? 
> > 
> > Thank you. 
> > 
> > 
> > On Tuesday, October 2, 2012 9:55:42 PM UTC+2, Herwig Hochleitner wrote: 
> >> 
> >> That is because dispatch on argument count is fast, while apply is 
> slow. 
> >> Especially so since it might have to create an intermediate seq. 
> >> It's a performance optimization. 
> >> 
> >> kind regards 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com<javascript:> 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com <javascript:> 
> > 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