Saturday, July 13, 2013

DBError

Apropos of the new Dropbox Datastore API, Jonathan Wight comments on how the SDK bizarrely makes a new class, DBError, that subclasses NSError to change the return type of the existing -code method, but doesn’t add any functionality. Exposing a separate error class makes all sorts of code much more complicated. And then there’s the issue of some methods taking DBError * for what is supposed to be an output parameter (DBError **). It’s API amateur hour.

Update (2013-07-13): Some of this is apparently fixed already.

Comments RSS · Twitter

Leave a Comment