On 17/07/2014 00:35, Andrea Faulds wrote:
zpp’s casts are (one form of) implicit cast. We actually do multiple different 
kinds of implicit casts in different places with different results; “0xa” is 
variously an integer and not an integer, depending on context, because nobody 
seems to have made their mind up whether is_numeric_string or strtol is used to 
parse numeric strings. :(

Well, that just makes me more confused why the word "consistency" appears so much in this thread.

Zeev, Stas, could you reference the set of rules which you think type hints should be consistent with?

--
Rowan Collins
[IMSoP]


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to