> -----Original Message-----
> From: Kris Craig [mailto:[email protected]]
>
> @Richard I think you made a very good point. Should we treat a float => int
> mismatch the same as we would a string => int mismatch, or should the former
> fail more gracefully? I can see good arguments for both.
>
> --Kris
I'm beginning to think that the type hinting question is too closely related to
the dirty secrets of type juggling to resolve them separately. You may have to
either discard consistency, or else fix the problem of silent bizarre
conversions at the same time ('foo'==0, '123abc'=123). Fixing the conversions
is a BC break though.
John Crenshaw
Priacta, Inc.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php