@Scott: What about when the library also needs to inject some management before the user gets given control?
Do we think that promises are not far different from an event manager? If it is far different, which is best? On Friday, 28 October 2011 at 13:19, Scott Sauyet wrote: > Besides what was already mentioned, they have what I see as another > major benefit. Instead of accepting various callback parameters, I > can write functions that return a very simple interface and leave it > to the caller to figure out what to do with the response. Since the > code for the calling function is no more difficult, and often simpler, > this is a great win. It's the difference between -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
