On 25 nov, 15:05, Rich Hickey <[EMAIL PROTECTED]> wrote: > To convert to a trampoline, simply return closures over your tail > calls, rather than direct calls. This is as simple as prepending #
I've maybe missed something, but will this work if one wants to make the final return value of the tail call a closure ? Will the closure not be called by the trampoline ? (Maybe I've missed something regarding the explanation on Fn / IFn, not clear to me) If I'm right, then should there be some "marker" to wrap the returned closure in, that will be checked by the trampoline for this special case, which will then unwrap the closure and return it as the final returned value ? HTH, -- Laurent --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---