Re: simple interface standard?
| From: | Bertrand Mansion | Date: | Mon, 30 Aug 2004 14:16:31 +0000 |
| Subject: | Re: simple interface standard? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33068@lists.php.net to get a copy of this message | ||
Hans L wrote:
>Bertrand Mansion wrote:
>> NB: Personally, I find it a bit silly to use instanceof for an interface when
>> a class actually *implements* one or more interfaces, but apparently PHP5
>> allows it...
>
>Well, this is the same behavior in Java / C#. Does seem a bit wrong
>semantically, though.
Yes, *conformsto* or even *implements* sounds more understandable than *instanceof* in this case...
Looks like not only the good things in Java made it into PHP5 :)
Bertrand Mansion
Mamasam