Opinions: API wrapping, how close to original API should you stay?

Dominic Mitchell dom at happygiraffe.net
Thu Oct 5 14:07:26 BST 2006


On Wed, Oct 04, 2006 at 04:54:52PM -0500, Ian Malpass wrote:
> Nik Clayton wrote:
> 
> >Assuming you were writing to this API, would you prefer to use:
> >
> >   $ml->get_optimistic_lock()
> >
> >   $ml->get_OptimisticLock()
> >
> >   $ml->getOptimisticLock()
> >
> >to retrieve the value, or something else?
> 
> Could you support both 1 and 3? Or would that just cause confusion?

That's what XML::Twig does.  :)

-Dom


More information about the london.pm mailing list