> If (Integer/parseInt "5") works, then not all functions need be an
> implementation of IFn; or perhaps more precisely, clojure knows when a
> call is being made to an IFn vs a static java method.

That's not a first-class function call. All first-class functions need  
to be callable, but not all things at the head of a list need to be  
functions.

To use Lisp terminology, Java methods are special forms. They can't be  
treated as first-class functions. Common Lisp example:

cl-user(2): (mapcar 'progn (list 1 2 3))
Error: Attempt to apply or funcall progn which is a special form.
   [condition type: undefined-function]


--~--~---------~--~----~------------~-------~--~----~
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