On 05/22/2013 11:13 AM, Stéphane wrote: > Okay, is there any plan to introduce Promises in Qooxdoo ? Does it > make sense anyway ?
Let me flip this question around: Where would you like to use promises within qooxdoo? Have you encountered a situtation when programming qooxdoo code where you felt, gee, if only I could use a promise here? The predominant programming model in qooxdoo is instantiating objects from classes, setting properties on those objects, invoking methods, and listening on events. This is a model that works very well for GUI programming. As qooxdoo is stretching out into other realms of JS programming other models might become more advantageous, maybe including promises. So if you have a use case where you wished qooxdoo had promises let us hear about it. > > I finally got it working : http://jsfiddle.net/3wBkz/6/ Nice work. You could safely replace occurrences of the .pipe calls with .then, which is the preferred API and makes the code also clearer. T. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
