That's the reason. To have a calling convention that works for non-native
function types.

David

On Tue, Jan 13, 2015 at 3:42 PM, Angel Java Lopez <[email protected]>
wrote:

> When ClojureScript finds a list like
>
> (ns myns.core)
> ;....
> (myfun arg1....)
>
> It is compiled to
>
> myns.core.myfun.call(null, arg1, ....)
>
> Why the .call? Why not:
>
> myns.core.myfun(arg1, ...)
>
> My first guess; to support
>
> (myvector 1)
>
> as
>
> myns.core.myvector.call(null, 0...)
>
> having something like
>
> Vector.prototype.call = function (self, n) { return this.nth(n); }
>
> Another other reason?
>
> Angel "Java" Lopez
> @ajlopez
>
>  --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to