Re: Re: RC1, instanceof?
| From: | Michael Wallner | Date: | Tue, 09 Aug 2005 10:19:14 +0000 |
| Subject: | Re: Re: RC1, instanceof? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17680@lists.php.net to get a copy of this message | ||
Hi Stanislav Malyshev, you wrote:
> Now the only problem I see here is if you
> type Bar when you intended to type Baz - but I'm not sure this warrants
> the fatal error.
Yes, unit tests could catch such issues.
> MW>>There could be a flag to let instanceof *not* die -
> MW>>a little less generic but more suited for the actual needs IMO.
>
> I don't like the idea of all kinds of flags changing language behaviour.
> This promotes incompatible coding and effectively forks language into a
> set of incompatible sub-languages. Not having any defined behaviour is
> much worse than having behaviour that somebody dislikes.
Uh no! I didn't mean an INI or runtime flag, i was talking
about fetch_class - i.e. the internal implementation may flag
if the operation should result in a fatal error.
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc