On Thursday 02 April 2009 21:21:37 Jason Tackaberry wrote:
> In the above (which uses Python 2.5 syntax in which the yield call can
> return a value), the sequence happens like so: [...]

I take the opportunity to say thanks for your explanation and the good docs; I 
always found them quite clear.

However:
> [...] if you design your application to use signals and
> callbacks from the start, coroutines don't really fit in very well.
> Think of coroutines as an alternative approach to a sequence of signals
> and callbacks.

This is a very important statement which seems to be the reason why I always 
had the feeling that kaa contains great stuff, but I found it hard to find 
spots for use in my own programs.

Later, you wrote:
> But to drive the point home, I should also provide the code that does
> the same thing only _without_ a coroutine, by using callbacks and
> connecting to each step: [...]

This is a great example!  Be sure to include that in the docs.

Maybe one could even add an example with a mixed approach, which could help 
the transition very much.  ("Now I have started my project already, with lots 
of callbacks, I guess it's too late to integrate coroutines!")

Best greetings,
  Hans


------------------------------------------------------------------------------
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to