RE: zend_API.c

From: Date: Mon, 03 Feb 2003 15:23:41 +0000
Subject: RE: zend_API.c
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93936@lists.php.net to get a copy of this message
> From: Andrei Zmievski [mailto:andrei@gravitonic.com] > Sent: Monday, February 03, 2003 4:18 PM > > > > so the question is to give rope or not. > > Ugh, so following your line of reasoning we should rewrite all > extensions to provide both function and OO apis? A better > approach would > be to have extensions provide only function API and then write a PEAR > class to expose them as objects. that would be a big step back again for several reasons: -) if done in c code you have one function serving as function and method, thus you have the same order/amount of arguments for the function _and_ the method. -) if something changes in the code, it automatically changes for the function and the method, if we had a pear class someone would have to maintain that. -) we finally brought down the cost of handling object beeing virtually the same as for handling resources, so why should we try that hard to make the damn thing slow again ? -) the errorhandling issue is not (easily) coverable if we simple wrap the funcitons as pear classes. harald

« previous php.dev (#93936) next »