On 7-Dec-09, at 4:05 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 07.12.2009 um 21:37 schrieb Bob Hutchison:
>
>>> Please note that in clojure, it's the dispatch on the class that's
>>> the
>>> "trick", not on the type ;-)
>>
>> Sorry, I don't understand what you mean. Could you expand on that a
Hi,
Am 07.12.2009 um 21:37 schrieb Bob Hutchison:
>> Please note that in clojure, it's the dispatch on the class that's the
>> "trick", not on the type ;-)
>
> Sorry, I don't understand what you mean. Could you expand on that a bit?
Dispatch on the class (or interface) is sometimes the "trick"
On 7-Dec-09, at 4:16 PM, ataggart wrote:
> On Dec 7, 12:37 pm, Bob Hutchison wrote:
>> On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote:
>>> 2009/12/6 Bob Hutchison
>>
Yes! Thanks! The dispatch on type rather than class is the trick. I
actually ended up writing a macro, this is *much* bet
On Dec 7, 12:37 pm, Bob Hutchison wrote:
> On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote:
>
>
>
>
>
> > 2009/12/6 Bob Hutchison
>
> >> On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote:
>
> >>> Hi,
>
> >>> Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
>
> It turns out that dispatching on pl
On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote:
> 2009/12/6 Bob Hutchison
>
>>
>> On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote:
>>
>>> Hi,
>>>
>>> Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
>>>
It turns out that dispatching on play.foo.Foo is the only way that
works. I was hoping
2009/12/6 Bob Hutchison
>
> On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote:
>
> > Hi,
> >
> > Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
> >
> >> It turns out that dispatching on play.foo.Foo is the only way that
> >> works. I was hoping ::f/Foo or f/Foo would work too (maybe my alias
> >> i
On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
>
>> It turns out that dispatching on play.foo.Foo is the only way that
>> works. I was hoping ::f/Foo or f/Foo would work too (maybe my alias
>> is
>> wrong??). Especially since, with alia
Hi again,
I think my example should work. You have to dispatch on `type` not `class`.
Sincerely
Meikel
smime.p7s
Description: S/MIME cryptographic signature
Hi,
Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
> It turns out that dispatching on play.foo.Foo is the only way that
> works. I was hoping ::f/Foo or f/Foo would work too (maybe my alias is
> wrong??). Especially since, with aliasing in the user namespace, I can
> create a play.foo.Foo us
On 6-Dec-09, at 3:46 PM, ataggart wrote:
> While there may be a way to work around it, if you're just dispatching
> on the type of the first arg, you might want to use defprotocol
> instead of defmulti.
True, and I likely will for most situations. In what I hope to do,
I've got a common situat
On Dec 6, 12:29 pm, Bob Hutchison wrote:
> Hi,
>
> I'm new to Clojure, not new to lisp (CL and scheme), and having a
> thoroughly good time. I've been having a go at the new deftype stuff
> and using a clone of the new branch from the git repository (up-to-
> date as of this message being post
11 matches
Mail list logo