Re: zend_API.c
| From: | Andrei Zmievski | Date: | Mon, 03 Feb 2003 15:50:51 +0000 |
| Subject: | Re: zend_API.c | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93938@lists.php.net to get a copy of this message | ||
On Mon, 03 Feb 2003, Harald Radi wrote:
> 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.
I don't see this as an issue - the OO API in PEAR would be a simple
wrapper for the function.
> -) 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.
See above.
> -) 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 ?
You are proving my point - the cost of handling objects is minimal, so
why not do it in userland?
> -) the errorhandling issue is not (easily) coverable if we simple wrap the
> funcitons as pear classes.
What errorhandling issue?
-Andrei http://www.gravitonic.com/
* Quantum Mechanics: The Dreams of Which Stuff is Made. *