W3C home > Mailing lists > Public > public-media-annotation@w3.org > April 2013

[3rdLC Comment API] Callbacks -> futures

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 11 Apr 2013 15:48:45 +0100
Message-ID: <CADnb78jDzP2LgW676hLn595bvwm09aGToG9EwP=48iDCMjeEwA@mail.gmail.com>
To: public-media-annotation@w3.org
I only looked briefly through this draft but you are using the wrong
callback syntax. The whole handleEvent() business is a thing of the
past.

Furthermore, rather than callbacks it seems much better to use futures
here: http://dom.spec.whatwg.org/#futures This is exactly the kind of
thing where you want to use futures.


How far are implementations along? It seems a lot of this API could
use quite a bit of polishing to make it more developer friendly.


--
http://annevankesteren.nl/
Received on Thursday, 11 April 2013 14:49:13 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 11 April 2013 14:49:14 UTC