As far as your point goes, numeric hint addresses it.
Ilia Alshanetsky
CIO/CSO
Centah Inc.
On 2009-07-01, at 2:07 PM, Stanislav Malyshev <s...@zend.com> wrote:
Hi!
The patch is available here: http://ia.gd/patch/type_hint_53.txt
Technical comment: as this patch changes binary API this shouldn't
happen in 5.3 branch. So maybe it's better to make it for 6.
As for the idea itself, it is obvious that many people like it, I
would just note that it would produce a confusion for some people
due to the fact that true, 1, 1.0, b'1' and '1' now become
incompatible values and (once you start using typehints, of course)
you'd have to explicitly convert them. That would lead people to
stuff their code with explicit type conversions, which doesn't add
to code cleanness. This also means that internal functions and user
functions would behave differently with regard to type conversions.
--
Stanislav Malyshev, Zend Software Architect
s...@zend.com http://www.zend.com/
(408)253-8829 MSN: s...@zend.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php