Hi,
Am 19.12.2010 um 19:35 schrieb Robert McIntyre:
> @Ken Wesson: do you mean something like this:
> https://gist.github.com/747571
Maybe I'm missing something, but why don't you just call the multimethod itself
again in the trampoline fn?
Sincerely
Meikel
--
You received this message becau
@Ken Wesson: do you mean something like this:
https://gist.github.com/747571
My fists stab at this technique looks kinda ugly though...
Is there a way to somehow embed the trampoline inside the recursive definition?
Is there a way to get the actual dispatch function other than
(.dispatchFn multime
Hi,
Am 19.12.2010 um 16:46 schrieb Ken Wesson:
> If we had a (resolve-method multi & args) that resolved dispatch and
> then returned a fn that would call the method with those same args --
> so ((resolve-method multi & args)) <=> (multi & args) -- then this
> could be used with trampoline in cas
On Sun, Dec 19, 2010 at 10:34 AM, Sunil S Nandihalli
wrote:
> thanks Meikel for your clarification.. I used to think loop recur almost
> removed the need for TCO .. but here is a case where true TCO could be
> really helpfull..
If we had a (resolve-method multi & args) that resolved dispatch and
thanks Meikel for your clarification.. I used to think loop recur almost
removed the need for TCO .. but here is a case where true TCO could be
really helpfull..
Sunil.
On Sun, Dec 19, 2010 at 1:33 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 19.12.2010 um 08:30 schrieb Sunil S Nandihalli:
>
> > He
Hi,
Am 19.12.2010 um 08:30 schrieb Sunil S Nandihalli:
> Hello everybody,
> It would be nice if calling recur inside a defmethod redispatched on the new
> arguments.. I have shown a simple use-case in the following gist.
> https://gist.github.com/747171
>
> It might be naive .. but I feel IMHO
Hello everybody,
It would be nice if calling recur inside a defmethod redispatched on the
new arguments.. I have shown a simple use-case in the following gist.
https://gist.github.com/747171
It might be naive .. but I feel IMHO that this should be the default
behaviour and not have any performanc