Could possibly clojure multimethods be enhanced to support more general use
cases (enabling to e.g. define generic functions on top of it), while still
be fast for the current behavior ?
It seems to me that being able to redefine the function that matches the
computed dispatch-value of the call to
On Mar 24, 10:51 pm, mikel wrote:
> On Mar 24, 5:37 pm, Meikel Brandmeyer wrote:
[...snip...]
I wanted to call out a point that I made before, but that is maybe
buried in a little too much verbiage. The point is that there is maybe
a way for me to implement an automated and predictable answe
On Tue, Mar 24, 2009 at 5:37 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 24.03.2009 um 22:36 schrieb mikel:
>
> CLOS says that if two matches are otherwise equally specific, the one
>> on the left wins. Similarly, it says that if two classes define slots
>> with the same name, the one farthest fro
On Mar 24, 5:37 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 24.03.2009 um 22:36 schrieb mikel:
>
> > CLOS says that if two matches are otherwise equally specific, the one
> > on the left wins. Similarly, it says that if two classes define slots
> > with the same name, the one farthest from the ro
Hi,
Am 24.03.2009 um 22:36 schrieb mikel:
CLOS says that if two matches are otherwise equally specific, the one
on the left wins. Similarly, it says that if two classes define slots
with the same name, the one farthest from the root of the class
heterarchy (as defined by a standard traversal al
On Mar 24, 3:39 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 24.03.2009 um 18:51 schrieb mikel:
>
> >>> (define-method add [x y] ...)
> >>> (define-method add [[x java.lang.Integer] y] ...)
> >>> (define-method add [x [y java.lang.Integer]] ...)
>
> >>> and call (add 3 3). Whi
Hi,
Am 24.03.2009 um 18:51 schrieb mikel:
(define-method add [x y] ...)
(define-method add [[x java.lang.Integer] y] ...)
(define-method add [x [y java.lang.Integer]] ...)
and call (add 3 3). Which of the methods is chosen?
Isn't it the second, which is the most specific
On Mar 24, 7:59 am, Laurent PETIT wrote:
> 2009/3/24 Konrad Hinsen
>
>
>
>
>
>
>
> > On Mar 24, 2009, at 11:19, mikel wrote:
>
> > > Dispatch is wholly deterministic; you never need prefer-method. There
>
> > Then what is the rule for choosing one method when there are several
> > that match t
2009/3/24 Konrad Hinsen
>
> On Mar 24, 2009, at 11:19, mikel wrote:
>
> > Dispatch is wholly deterministic; you never need prefer-method. There
>
> Then what is the rule for choosing one method when there are several
> that match the arguments?
>
> > In the scope in which a generic function is ap
On Mar 24, 2009, at 11:19, mikel wrote:
> Dispatch is wholly deterministic; you never need prefer-method. There
Then what is the rule for choosing one method when there are several
that match the arguments?
> In the scope in which a generic function is applied, next-method is
> always bound t
10 matches
Mail list logo