Re: 'Simple' phpers idea about interfaces/code reuse [was] Re: [PHP-DEV] PHP 6.0 Wishlist

From: Date: Thu, 25 Aug 2005 12:41:31 +0000
Subject: Re: 'Simple' phpers idea about interfaces/code reuse [was] Re: [PHP-DEV] PHP 6.0 Wishlist
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-18414@lists.php.net to get a copy of this message
Zeev Suraski wrote:
How is that different from multiple inheritance?
I guess the only difference is that interfaces don't strictly fall into a hierarchy? also interfaces don't implement properties or class constants which would simplify matters? anyway I guess I have to read more on the subject! (I guess I was thinking about too simply ... mostly from a javascript POV - which allows what to me seems a really neat mechanism for 'hanging' functions onto objects - I realise that javascript uses a completely different [i.e. prototypal] model which may not be even slightly applicable to php - but hey it's what I know :-) thanks for taking the time to answer (hope you all don't mind to much) kinds regards, Jochem
Zeev At 12:44 25/08/2005, Jochem Maas wrote:
in a totally non-academic and impure way I have always thought that it would be nice to be able to define function bodies in interface declarations


« previous php.internals (#18414) next »