R: [PHP-DEV] request

From: Date: Tue, 17 Apr 2001 13:49:21 +0000
Subject: R: [PHP-DEV] request
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-51785@lists.php.net to get a copy of this message
For me , yes :) I work in a ISP, and we use PHP for all sites that need to be connected by a database. I'ts about one year we use it, and it's great. We have put all the reusable code into Classes, so we can reuse it many times without rewrite the same code. But in large projects, we see that multiple inheritance would be very useful. For make a stupid example, times ago we make a class for a cart. (class A) And some month ago, we make another class for payments with credit card. (class B) And we have found online a class that make an email-validation (class C) Now, if i want to make a new class cart, that let users pay with credit card, and see it the user put a valid e-mail address, if PHP support multiple inheritance i can make a class (class NEW_CART) like: class NEW_CART extends A,extends B,extends C { ... } Very simple... Alberto Stanislav Malyshev <stas@zend.com> wrote in message Pine.LNX.4.30.0104171556320.27727-100000@shire.zend.office... > JT>> > Ah, that's another way to say "When Andi and Zeev implement it" :-) > JT>> > JT>> Like..never? :) > > Generally, since PHP is not a strongly typed language, it's not too hard > to implement multiple inheritance, I guess. Question is - is it worth the > effort? Does it need to be done? > > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#51785) next »