<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Type Hinting</title>
	<atom:link href="http://blog.digitalstruct.com/2009/07/07/php-type-hinting/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digitalstruct.com/2009/07/07/php-type-hinting/</link>
	<description>Getting inside the mind of a php developer.</description>
	<lastBuildDate>Wed, 14 Jul 2010 10:51:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: A.R.</title>
		<link>http://blog.digitalstruct.com/2009/07/07/php-type-hinting/comment-page-1/#comment-40956</link>
		<dc:creator>A.R.</dc:creator>
		<pubDate>Mon, 05 Apr 2010 18:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=98#comment-40956</guid>
		<description>The SPL types SplInt, SplString, etc, are rather unsightly. 

What would be nice is some syntactic sugar, e.g.:

int $x;
translates to: $x = new SplInt();

int $x = 123;
translates to: $x = new SplInt(123);

function f(int $x) { ... }
translates to: function f(SplInt $x) { ... }

One advantage of type-hinting is that PHP compilers would be able to deliver a huge performance gain (more dramatic than interpreted PHP).</description>
		<content:encoded><![CDATA[<p>The SPL types SplInt, SplString, etc, are rather unsightly. </p>
<p>What would be nice is some syntactic sugar, e.g.:</p>
<p>int $x;<br />
translates to: $x = new SplInt();</p>
<p>int $x = 123;<br />
translates to: $x = new SplInt(123);</p>
<p>function f(int $x) { &#8230; }<br />
translates to: function f(SplInt $x) { &#8230; }</p>
<p>One advantage of type-hinting is that PHP compilers would be able to deliver a huge performance gain (more dramatic than interpreted PHP).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Hendrickson</title>
		<link>http://blog.digitalstruct.com/2009/07/07/php-type-hinting/comment-page-1/#comment-40749</link>
		<dc:creator>Justin Hendrickson</dc:creator>
		<pubDate>Thu, 09 Jul 2009 12:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=98#comment-40749</guid>
		<description>I noticed they added some new SPL classes to handle basic types. I guess this is going to superceed it though.

http://www.php.net/manual/en/book.spl-types.php</description>
		<content:encoded><![CDATA[<p>I noticed they added some new SPL classes to handle basic types. I guess this is going to superceed it though.</p>
<p><a href="http://www.php.net/manual/en/book.spl-types.php" rel="nofollow">http://www.php.net/manual/en/book.spl-types.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Olson</title>
		<link>http://blog.digitalstruct.com/2009/07/07/php-type-hinting/comment-page-1/#comment-40747</link>
		<dc:creator>Philip Olson</dc:creator>
		<pubDate>Wed, 08 Jul 2009 19:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=98#comment-40747</guid>
		<description>I&#039;m fairly certain this won&#039;t happen in 5.3, so likely wait for the next minor (5.4 or 6.0) release for this type of feature.</description>
		<content:encoded><![CDATA[<p>I&#8217;m fairly certain this won&#8217;t happen in 5.3, so likely wait for the next minor (5.4 or 6.0) release for this type of feature.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
