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: signature.asc
Description: OpenPGP digital signature

Reply via email to