Re: type hinting

From: Date: Wed, 06 Feb 2008 18:13:46 +0000
Subject: Re: type hinting
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-35264@lists.php.net to get a copy of this message
This library would probably have ~300(String) + ~110(Int) ~40(Resource) ~30(Bool) ~10(Float) = 500 less function calls, and much cleaner code if there was type hinting.
You forgot the code that you'd have to write to deal with the situation that typehinted function fails.
I understand a lot of the "Karma" having people not liking the idea, but there is more then one feature in PHP I am sure people don't agree
True. This feature has additional bonus of making no sense and going contrary to how PHP worked all the way through its history. But we already visited this town a number of times, so I propose just to take a nostalgic tour down the archive instead of repeating it anew.
with. Bottom line all stubbornness should be put aside and look to see if it would improve the language use and appeal to a large user base,
No, it won't improve. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35264) next »