Re: OO in PHP5 (was "zend_API.c" on php-dev)

From: Date: Mon, 03 Feb 2003 23:32:07 +0000
Subject: Re: OO in PHP5 (was "zend_API.c" on php-dev)
References: 1 2  Groups: php.dev php.dev 
Request: Send a blank email to php-dev+get-93975@lists.php.net to get a copy of this message
andrei's point: extensions should stick to either functional or oo API PEAR wrappers can be provided my point: extensions should expose both APIs (if desired) can be done by aliasing functions to class methods -> no duplicate c code when called as function -> print warning when called as method -> throw exception What do you guys think of this?
I would argue that having two different methods to do the same thing only leads to increased complexity and confusion. Sure, some people like it one way and some people another, but having a standard way of doing things is, IMHO, better. Bye, Ivan

« previous php.dev (#93975) next »