W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [webdatabase] changeVersion should allow all callbacks to be optional

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 28 Aug 2009 15:30:12 +0200
Message-ID: <4A97DBE4.2060800@lachy.id.au>
To: public-webapps <public-webapps@w3.org>
Lachlan Hunt wrote:
>   The spec currently requires the first 2 callbacks for the 
> changeVersion method, while the 3rd is optional.  The spec should make 
> all of the callbacks optional so authors don't resort to specifying 
> empty functions when they don't actually need to do anything with it.

On second thought, this might not be such a good idea.  If the purpose 
of the first callback in this case is to allow the author to actually 
make changes to the database, rather than simply change the version 
number and do nothing else.  I just didn't realise that's what it's 
purpose was at first.

FWIW, this API is insanely complicated and has way too many callbacks to 
keep track of.  It's caused me a lot of confusion and makes using it 
incredibly complex.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Friday, 28 August 2009 13:30:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT