Re: Type hinting/casting request for vote

From: Date: Thu, 09 Jul 2009 09:10:53 +0000
Subject: Re: Type hinting/casting request for vote
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-44857@lists.php.net to get a copy of this message
On 09.07.2009, at 02:28, troels knak-nielsen wrote:
On Thu, Jul 9, 2009 at 2:15 AM, Mark<markg85@gmail.com> wrote:
I personally would be highly in favor of adding type hinting/casting BUT with the benifit that php actually becomes faster if you do things like that. Afterall you can use way more effective c code if you know what you expect right? As for the version to include type
I sure hope that all the people in favour of this change aren't basing their opinion on some delusion that it would improve performance in any way.
well .. this will have an effect on performance. for one the additional checks will probably add a small overhead for all users. the reduction in user land type check code should of course improve performance. that being said, none of the above will have a significant relevant affect on performance in real world applications (which usually spend most of their time talking to data stores and not type checking). regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#44857) next »