Re: Interface inheritance
| From: | Adam Maccabee Trachtenberg | Date: | Tue, 20 Apr 2004 14:02:38 +0000 |
| Subject: | Re: Interface inheritance | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9417@lists.php.net to get a copy of this message | ||
On Tue, 20 Apr 2004, George Schlossnagle wrote:
> On Apr 20, 2004, at 3:22 AM, Derick Rethans wrote:
>
> > On Mon, 19 Apr 2004, Sterling Hughes wrote:
> >
> >> mo compile errors mo better.
> >
> > But NOT for normal methods!
>
> I agree with Derick. Compile errors for interfaces methods good.
> Compile errors for normal inherited methods bad.
Amen! While I'm in favor of this for other reasons, my largest
argument is backwards compatibility.
Compile errors for normal methods is guaranteed to break *lots* of PHP
4 code and not in a trivial s/var/public/g kind of way.
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!