On Sun, 2008-01-06 at 21:53 +0100, Pierre wrote: > Hi Marcus, > > On Jan 6, 2008 9:24 PM, Marcus Boerger <[EMAIL PROTECTED]> wrote: > > > That said I would only agree to type hints if we make them respect existing > > PHP conversion rules. > > That can be a good compromise and may make happy the cons camp. > However, I would not like to have "11an" returns 0 but raises an > error. I can live with "[0-1.]" being converted to integer or float as > it is the case now. Even I would rather prefer a strict hinting and > let the user of a method or function do the cast (for the reasons > explained numerous times in this thread).
Well concerning integers and floats, this is why I have implemented the "num" type hint, which accepts either. Very useful in my opinion. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php