[Twisted-Python] regarding callbacks.
Jasper St. Pierre
jstpierre at mecheye.net
Mon Apr 30 16:45:03 EDT 2012
On Mon, Apr 30, 2012 at 4:15 PM, Glyph <glyph at twistedmatrix.com> wrote:
> On Apr 30, 2012, at 4:57 AM, moses dsouza wrote:
> I don't think so. Most of what Guido wants is already available via inlineCallbacks, and the drawbacks of using that are documented pretty well in the comments there. I also have some issues with the premises and conclusions of that article. For example, batching, pipelining and pooling are all easier to implement with a callback-driven style.
Several large JS toolkits have the concept of a Deferred or a Promise.
MochiKit stole Twisted's, where it got forked into Dojo, and then
forked into Google's Closure library. jQuery has a separate Deferred
implementation that looks like Twisted's, and is similar enough that
we can call it a Deferred, although I know a few people who object to
This is a bit off-topic, but generators are expected to be in Harmony
(they're already in Mozilla's JS, stolen wholesale from Python). The
latest specification draft has "yield" as a future reserved word, and
has a reference to an undefined "YieldExpression", though this may
just be an editing oversight.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python