W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2009

Callback naming

From: Robin Berjon <robin@berjon.com>
Date: Wed, 2 Dec 2009 12:15:08 +0100
Message-Id: <BA309B13-1F2A-450C-B331-1ED65C19DA34@berjon.com>
To: public-device-apis@w3.org
Hi,

in the interest of shorter names (and WebIDL that doesn't extend over to one's neighbour's screen), should we use "CB" as short for callback? PendingOperation could also be PendingOp. Such changes have minimal impact as no constructors exist for these anyway. It also avoids the xxxCallBack vs xxxCallback disparity.

E.g.:

PendingOperation captureDahut (in CaptureCallback successCallback, in optional ErrorCallback errorCallback);

replaced by 

PendingOp captureDahut (in CaptureCB successCB, in optional ErrorCB errorCB);

Thoughts?

-- 
Robin Berjon - http://berjon.com/
Received on Wednesday, 2 December 2009 11:15:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:02 GMT