Hi, On 15 Okt., 19:11, CuppoJava <[EMAIL PROTECTED]> wrote: > I'm trying to use this macro to port a game-framework that I've > written in Ruby, to Clojure. > ... > Do you guys have any ideas? Or a direction that I might consider > looking in?
I can only offer a general advice: Don't stick to close to your original code. You said, you used coroutines in Ruby and now you are asking for them in Clojure. Maybe you should take one step back and take a view from the distance and try to think in Clojure. Suppose the yield in your original post is not a coroutine thing, but some utility function. Just to see, that instead of calling it in a loop, one can also construct the inputs in a seq and map yield over it, takes sometimes hours for me. But when I get such sudden idea (which is maybe obvious for experienced Clojure programmers), I'm always surprised by the compression it yields. Real case: some >10 pages of code were shrunk to ~2 pages of code with the same functionality. I thought, "wtf did I do in the first version?" Sincerely Meikel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---