On Feb 12, 1:27 pm, David Nolen <dnolen.li...@gmail.com> wrote:
> Neat! You've removed the need to even define a dispatch-fn.

Maybe; maybe not. The built-in dispatch mechanism uses a selection
scheme that applies a sequence of increasingly restrictive, but also
increasingly costly, tests; basically, the tests in order are: (1)
identity; (2) isa? (3) model? (is this value a map and are all its
keys members of one or more test maps) (4) = (5) an arbitrary user-
supplied test. A fuller implementation should probably provide the
option of replacing that dispatch algorithm with one of your own
choosing, probably as an option to make-generic-function.

> Seems like this kind of dispatch and the Datalog project might meet up soon?
> Or am I totally wrong?

I have given it zero thought.


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