<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for PHP 10.0 Blog</title>
	<atom:link href="http://php100.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://php100.wordpress.com</link>
	<description>What if...</description>
	<lastBuildDate>Fri, 30 Oct 2009 03:53:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on syntax I miss in PHP by Jaimie Sirovich</title>
		<link>http://php100.wordpress.com/2009/08/21/syntax-i-miss-in-php/#comment-13649</link>
		<dc:creator>Jaimie Sirovich</dc:creator>
		<pubDate>Fri, 30 Oct 2009 03:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=102#comment-13649</guid>
		<description>These are pretty fast-and-loose comments.

All of these syntaxes are useful.  Some more than others.  a()[$x] is probably more useful than a()(). I could do without the latter, but both have irked me a few times.

(3) is implemented by C#, and Microsoft thought about it a lot.  Same re: (4).  Almost every language except PHP has a short array grammar.

I&#039;ve implemented IN as:

function EQ()
{
  $args = func_get_args();
  return Utils::inArray($args[0], array_slice($args, 1));
}

The same could be done for between.  Functions sometimes can make up for a lack of an operator.  Sure it&#039;s prefix notation, but whatever :)</description>
		<content:encoded><![CDATA[<p>These are pretty fast-and-loose comments.</p>
<p>All of these syntaxes are useful.  Some more than others.  a()[$x] is probably more useful than a()(). I could do without the latter, but both have irked me a few times.</p>
<p>(3) is implemented by C#, and Microsoft thought about it a lot.  Same re: (4).  Almost every language except PHP has a short array grammar.</p>
<p>I&#8217;ve implemented IN as:</p>
<p>function EQ()<br />
{<br />
  $args = func_get_args();<br />
  return Utils::inArray($args[0], array_slice($args, 1));<br />
}</p>
<p>The same could be done for between.  Functions sometimes can make up for a lack of an operator.  Sure it&#8217;s prefix notation, but whatever <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on syntax I miss in PHP by Jaimie Sirovich</title>
		<link>http://php100.wordpress.com/2009/08/21/syntax-i-miss-in-php/#comment-13648</link>
		<dc:creator>Jaimie Sirovich</dc:creator>
		<pubDate>Fri, 30 Oct 2009 03:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=102#comment-13648</guid>
		<description>&lt;b&gt;A better way&lt;/b&gt;

function EQ() {
 $args = func_get_args();
 return in_array($args[0], array_slice($args, 1));
}

if EQ($value, 1, 2, 3) { // do stuff if it&#039;s 1 or 2 or 3 }

Done.</description>
		<content:encoded><![CDATA[<p><b>A better way</b></p>
<p>function EQ() {<br />
 $args = func_get_args();<br />
 return in_array($args[0], array_slice($args, 1));<br />
}</p>
<p>if EQ($value, 1, 2, 3) { // do stuff if it&#8217;s 1 or 2 or 3 }</p>
<p>Done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend Server PHP sources by PHP 10.0 Blog: Zend Server PHP sources &#124; Webs Developer</title>
		<link>http://php100.wordpress.com/2009/10/23/zend-server-php-sources/#comment-13643</link>
		<dc:creator>PHP 10.0 Blog: Zend Server PHP sources &#124; Webs Developer</dc:creator>
		<pubDate>Tue, 27 Oct 2009 15:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=104#comment-13643</guid>
		<description>[...] the PHP 10.0 blog today Stas points out some packages from Zend that are the source versions of the Zend Server platform:   I was asked about PHP going [...]</description>
		<content:encoded><![CDATA[<p>[...] the PHP 10.0 blog today Stas points out some packages from Zend that are the source versions of the Zend Server platform:   I was asked about PHP going [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on syntax I miss in PHP by Calle</title>
		<link>http://php100.wordpress.com/2009/08/21/syntax-i-miss-in-php/#comment-13642</link>
		<dc:creator>Calle</dc:creator>
		<pubDate>Mon, 26 Oct 2009 23:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=102#comment-13642</guid>
		<description>Nice post, you activated a few minds..

Something I&#039;d really like:

$blog_posts = new blogManager()-&gt;getPosts();

This would spare a lot of temporary variables, and avoid a couple of unnecessary Singletons.</description>
		<content:encoded><![CDATA[<p>Nice post, you activated a few minds..</p>
<p>Something I&#8217;d really like:</p>
<p>$blog_posts = new blogManager()-&gt;getPosts();</p>
<p>This would spare a lot of temporary variables, and avoid a couple of unnecessary Singletons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend Server PHP sources by uberVU - social comments</title>
		<link>http://php100.wordpress.com/2009/10/23/zend-server-php-sources/#comment-13641</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Sun, 25 Oct 2009 12:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=104#comment-13641</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by SamHennessy: What or need the #PHP source code used in Zend Server? Find them at http://digs.by/cWx thanks Stat...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by SamHennessy: What or need the #PHP source code used in Zend Server? Find them at <a href="http://digs.by/cWx" rel="nofollow">http://digs.by/cWx</a> thanks Stat&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on syntax I miss in PHP by sokzzuka</title>
		<link>http://php100.wordpress.com/2009/08/21/syntax-i-miss-in-php/#comment-13637</link>
		<dc:creator>sokzzuka</dc:creator>
		<pubDate>Fri, 16 Oct 2009 09:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=102#comment-13637</guid>
		<description>You can also use proxy pattern to wrap all requests to an object, but it involves another layer. Also, using __call all your methods must be private or protected, so you can&#039;t implement an interface this way...</description>
		<content:encoded><![CDATA[<p>You can also use proxy pattern to wrap all requests to an object, but it involves another layer. Also, using __call all your methods must be private or protected, so you can&#8217;t implement an interface this way&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on syntax I miss in PHP by James Murray</title>
		<link>http://php100.wordpress.com/2009/08/21/syntax-i-miss-in-php/#comment-13636</link>
		<dc:creator>James Murray</dc:creator>
		<pubDate>Wed, 14 Oct 2009 18:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=102#comment-13636</guid>
		<description>actually that&#039;s kind of pointless.

You can just use the __get() and __set() magic methods to implement this. Just put your &#039;secured&#039; properties in an array set to be a private property.

&lt;code&gt;&lt;pre&gt;
class Example {
   private $properties;

   public function __get($name){
        if(//some logic ){
             return $this-&gt;properties[$name];
        }
        trigger_error(&#039;access denied&#039;,E_USER_FATAL);
        return;
   }
}

$ex = new Example();
$var = $ex-&gt;foo;
//if your property isn&#039;t accessible you&#039;ll get a fatal error
&lt;/pre&gt;&lt;/code&gt;

You can do the same thing with method calls using __call()</description>
		<content:encoded><![CDATA[<p>actually that&#8217;s kind of pointless.</p>
<p>You can just use the __get() and __set() magic methods to implement this. Just put your &#8217;secured&#8217; properties in an array set to be a private property.</p>
<p><code>
<pre>
class Example {
   private $properties;

   public function __get($name){
        if(//some logic ){
             return $this-&gt;properties[$name];
        }
        trigger_error('access denied',E_USER_FATAL);
        return;
   }
}

$ex = new Example();
$var = $ex-&gt;foo;
//if your property isn't accessible you'll get a fatal error
</pre>
<p></code></p>
<p>You can do the same thing with method calls using __call()</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on syntax I miss in PHP by sokzzuka</title>
		<link>http://php100.wordpress.com/2009/08/21/syntax-i-miss-in-php/#comment-13635</link>
		<dc:creator>sokzzuka</dc:creator>
		<pubDate>Wed, 14 Oct 2009 10:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=102#comment-13635</guid>
		<description>It would be cool if there could be another type of variable/method scope in a class (after public,private and protected) called for example &#039;secured&#039; every variable/method declared with secured before access a magic (user defined) function would be called which would check if the access to the variable/method is permitted, this could be very handy ;).

Usage example
&lt;pre&gt;
&lt;code&gt;class Example {
   secured $foo;
   secured $bar;
   public function __isPermitted($name,$arguments,$caller){
        if(//some logic ){
             return true;
        }
        return false;
   }
}

$ex = new Example();
$var = $ex-&gt;foo;

//if isPermitted returns false
FATAL_ERROR: access denied

&lt;/code&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It would be cool if there could be another type of variable/method scope in a class (after public,private and protected) called for example &#8217;secured&#8217; every variable/method declared with secured before access a magic (user defined) function would be called which would check if the access to the variable/method is permitted, this could be very handy <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Usage example</p>
<pre>
<code>class Example {
   secured $foo;
   secured $bar;
   public function __isPermitted($name,$arguments,$caller){
        if(//some logic ){
             return true;
        }
        return false;
   }
}

$ex = new Example();
$var = $ex-&gt;foo;

//if isPermitted returns false
FATAL_ERROR: access denied

</code>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Y-Combinator in PHP by 5.3!!! &#124; BrainPair - the Techno Blog</title>
		<link>http://php100.wordpress.com/2009/04/13/php-y-combinator/#comment-13631</link>
		<dc:creator>5.3!!! &#124; BrainPair - the Techno Blog</dc:creator>
		<pubDate>Wed, 07 Oct 2009 17:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=70#comment-13631</guid>
		<description>[...] and anonymous functions! PHP now has first-class functions, and you can do all kinds of crazy stuff with it. Or just make your code easier to read and [...]</description>
		<content:encoded><![CDATA[<p>[...] and anonymous functions! PHP now has first-class functions, and you can do all kinds of crazy stuff with it. Or just make your code easier to read and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Namespaces FAQ by 網站製作學習誌 &#187; [PHP] 幾篇不錯的文章</title>
		<link>http://php100.wordpress.com/2007/08/17/namespaces-faq/#comment-13629</link>
		<dc:creator>網站製作學習誌 &#187; [PHP] 幾篇不錯的文章</dc:creator>
		<pubDate>Sat, 03 Oct 2009 03:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/2007/08/17/namespaces-faq/#comment-13629</guid>
		<description>[...] Namespaces FAQ [...]</description>
		<content:encoded><![CDATA[<p>[...] Namespaces FAQ [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
