| Store | Cart

Suggesting a new feature - "Inverse Generators"

From: Diez B. Roggisch <deet...@web.de>
Fri, 25 Mar 2005 19:13:48 +0100
> > I'll try to reduce my pages of ranting to a single question. In> posting, i was wondering if the "syntactic sugar" (Acceptors) that i> invented to implement the solution is of any general interest. So are> there maybe examples less straightforward than this one, where> Acceptors work better? Or can you always just "turn the generator> inside out" in the way you have done here?> > If you can always do it your way, well, thats a powerful design> pattern, and it just goes to show my faith in Generators was justified> :) And that I wasnt thinking hard /clearly enough about how to use> them.> > There are other issues, like "Does the Acceptor syntax, although> perhaps functionally equivalent to other methods, ever make the code> more readable, easier to parse, etc?" But they're a lot less important> i'd say.


To me your acceptors look like micro-threads or similar concepts that have
been popped up here every now and then - but so far it seems they didn't
end up beeing included. I can't say for what reasons though.

Just yesterday I looked into stackless python to grasp what it does, and
while it is not syntactically different to standard python, it seems to
make coding the way you intend to do possible.


-- 
Regards,

Diez B. Roggisch

Recent Messages in this Thread
Jordan Rastrick Mar 25, 2005 04:04 pm
Jordan Rastrick Mar 25, 2005 04:10 pm
Andrew Koenig Mar 25, 2005 04:18 pm
Jordan Rastrick Mar 25, 2005 04:36 pm
Andrew Koenig Mar 26, 2005 01:40 pm
Tim Hochberg Mar 25, 2005 04:25 pm
Michael Spencer Mar 25, 2005 04:46 pm
Jordan Rastrick Mar 25, 2005 05:23 pm
Michael Spencer Mar 25, 2005 06:41 pm
Serge Orlov Mar 25, 2005 07:14 pm
Jordan Rastrick Mar 26, 2005 06:56 am
Peter Otten Mar 26, 2005 08:04 am
Scott David Daniels Mar 25, 2005 07:34 pm
Michael Spencer Mar 25, 2005 08:07 pm
Scott David Daniels Mar 25, 2005 09:00 pm
Bengt Richter Mar 25, 2005 10:11 pm
Bengt Richter Mar 25, 2005 07:43 pm
Terry Reedy Mar 25, 2005 07:13 pm
Jordan Rastrick Mar 25, 2005 04:49 pm
Diez B. Roggisch Mar 25, 2005 06:13 pm
Jordan Rastrick Mar 26, 2005 04:11 pm
phil...@yahoo.com Mar 27, 2005 03:44 am
Oren Tirosh Mar 27, 2005 06:58 am
Messages in this thread