<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 02:09:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SitePoint PHP Blog: PHP6 gets a COMEFROM statement]]></title>
      <guid>http://www.phpdeveloper.org/news/5083</guid>
      <link>http://www.phpdeveloper.org/news/5083</link>
      <description><![CDATA[<i>Harry Fuecks</i> has posted <a href="http://www.sitepoint.com/blogs/2006/03/31/php6-gets-a-comefrom-statement/">a new item</a> on the SitePoint PHP Blog today - a look at the "COMEFROM" statement that the next major version of PHP will have (PHP6).
<p>
<quote>
<i>
One of the more controversial additions to PHP6 is the <a href="http://php.net/~derick/meeting-notes.html#adding-goto">GOTO</a>. Some have argued it <a href="http://en.wikipedia.org/wiki/GOTO#Criticism">flys in the face</a> of many years good programming sense but there are valid use cases, when running performance critical operations such as parsing, where the overhead of making PHP user function calls becomes significant.
<p>
Anyway GOTO seems to have opened the gates to some more radical language modifications and <a href="http://marc.theaimsgroup.com/?t=113261269400004&r=1&w=2">recent discussion</a> a revolved around adding a <a href="http://marc.theaimsgroup.com/?l=php-dev&m=111805996014466&w=2">COMEFROM</a> statement to PHP, which led to an initial patch being applied to the PHP6 CVS branch <a href="http://news.php.net/php.cvs/37564">here</a>.
</i>
</quote>
<p>
<a href="http://www.sitepoint.com/blogs/2006/03/31/php6-gets-a-comefrom-statement/">The statement</a> allows you to modify your code's behavior based on where it came from rather than just forwarding around bits of code from one place to the next. <i>Harry</i> gives a code example of how it can be used as well.
<p>
(Hint: think about this one...)]]></description>
      <pubDate>Fri, 31 Mar 2006 20:20:04 -0600</pubDate>
    </item>
  </channel>
</rss>
