On Dec 16, 3:51 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 16.12.2011 um 01:58 schrieb Cedric Greevey:
>
> > I know that every fn is a class; I am questioning the very need for
> > "prim interfaces".
>
> If you don't have an interface, you can't redef the function at runtime. 
> Since the class of the function changes, you'll have the call sites wired to 
> the wrong class. Hence you have to recompile the call sites. For a macro this 
> is to be expected, but for a function...
With method handles we could emulate Factor's solution to this
problem. Every function class has a static collection of call sites it
is installed in so when the function is superseded by a new version
all of those call sites can be invalidated appropriately. Of course
this approach would introduce a dependency on Java 7, increase memory
usage, and still not solve the higher-order use case.

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