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

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.


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

replaced by 

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


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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:41 UTC