> From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] > 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php