News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike Willbanks' Blog:
PHP Type Hinting
July 08, 2009 @ 12:57:11

There's been lots of talk about type hinting lately (both on blogs and on mailing lists) so Mike Willbanks has decided to add some of his own thoughts about why it should be included.

You may be wondering why you would want type hinting in a dynamic language. This can come in very handy especially if you are looking to enforce a specific type or need to ensure that you are indeed working with say an integer. Since this is written in C, it will be far faster than actually type casting it yourself or enforcing it yourself. General speed improvements are always nice to have.

He includes two code examples of it in use and points to the php.internals mailing list for the vote count either way. So far (as of the time of those post) the results seem mixed with some recommending it outright while others suggest waiting until the spec is completely done before integration (PHP6?).

0 comments voice your opinion now!
mailinglist phpinternals typehinting


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend Framework Contributors Mailing-List Summary; Edition #1 (June 2011)

PHPWomen.org: PHPWomen.org Mailing Lists

Freek Lijten's Blog: Currently on PHP's internals...

PHPKitchen: Using Wordpress

Stefan Koopmanschap's Blog: What we can learn from yesterday's phpBB.com hack


Community Events





Don't see your event here?
Let us know!


api interview threedevsandamaybe podcast introduction unittest language configure conference opinion community framework version voicesoftheelephpant list series composer release laravel symfony

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework