<?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: Is PHP 5.3 Terminal?  Well, It&#8217;s Getting One For Namespaces</title>
	<atom:link href="http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/</link>
	<description>A Web Development Blog by Synapse Studios</description>
	<lastBuildDate>Sun, 05 Feb 2012 02:47:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: zend_idiots</title>
		<link>http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/comment-page-1/#comment-932</link>
		<dc:creator>zend_idiots</dc:creator>
		<pubDate>Sat, 27 Aug 2011 07:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=370#comment-932</guid>
		<description>I agree with &#039;i_ate_god&#039;.  Using the backslash is without doubt the stupidest thing I&#039;ve seen.  It looks fucking ugly, difficult to read. I&#039;m off to the Python camp.. bye bye Zend and PHP.</description>
		<content:encoded><![CDATA[<p>I agree with &#8216;i_ate_god&#8217;.  Using the backslash is without doubt the stupidest thing I&#8217;ve seen.  It looks fucking ugly, difficult to read. I&#8217;m off to the Python camp.. bye bye Zend and PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jero</title>
		<link>http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/comment-page-1/#comment-675</link>
		<dc:creator>Jero</dc:creator>
		<pubDate>Sat, 24 Jul 2010 01:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=370#comment-675</guid>
		<description>It would seem the example code got scrubbed from my previous comment. Bugger. Let&#039;s have another try:

Solution: Disallow classes with the same name as namespaces. (Like in java, but not exactly. Just use the same namespace (pardon) for namespaces and classes)

IE:
//File1.php
namespace foo;
function bar()
{
   return &quot;Broken&quot;;
}
//File2.php
class foo
{
   public static function bar()
   {
       return &quot;Damaged&quot;;
   }
}
//index.php
include &quot;file1.php&quot;; //A-Ok!
include &quot;file2.php&quot;; //Fatal Error: Cannot redeclare namespace (foo) with class

echo foo::bar(); //Should have failed before getting here.
//In php 5.3.0, will output &quot;Damaged&quot;
//End IE


This should be simple to implement, and not risk the ire of the community! :D</description>
		<content:encoded><![CDATA[<p>It would seem the example code got scrubbed from my previous comment. Bugger. Let&#8217;s have another try:</p>
<p>Solution: Disallow classes with the same name as namespaces. (Like in java, but not exactly. Just use the same namespace (pardon) for namespaces and classes)</p>
<p>IE:<br />
//File1.php<br />
namespace foo;<br />
function bar()<br />
{<br />
   return &#8220;Broken&#8221;;<br />
}<br />
//File2.php<br />
class foo<br />
{<br />
   public static function bar()<br />
   {<br />
       return &#8220;Damaged&#8221;;<br />
   }<br />
}<br />
//index.php<br />
include &#8220;file1.php&#8221;; //A-Ok!<br />
include &#8220;file2.php&#8221;; //Fatal Error: Cannot redeclare namespace (foo) with class</p>
<p>echo foo::bar(); //Should have failed before getting here.<br />
//In php 5.3.0, will output &#8220;Damaged&#8221;<br />
//End IE</p>
<p>This should be simple to implement, and not risk the ire of the community! :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jero</title>
		<link>http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/comment-page-1/#comment-674</link>
		<dc:creator>Jero</dc:creator>
		<pubDate>Sat, 24 Jul 2010 01:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=370#comment-674</guid>
		<description>Solution: Disallow classes with the same name as namespaces. (Like in java, but not exactly. Just use the same namespace (pardon) for namespaces and classes)

IE:
//File1.php

//File2.php

//index.php

//End IE


This should be simple to implement, and not risk the ire of the community! :D</description>
		<content:encoded><![CDATA[<p>Solution: Disallow classes with the same name as namespaces. (Like in java, but not exactly. Just use the same namespace (pardon) for namespaces and classes)</p>
<p>IE:<br />
//File1.php</p>
<p>//File2.php</p>
<p>//index.php</p>
<p>//End IE</p>
<p>This should be simple to implement, and not risk the ire of the community! :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Irwin</title>
		<link>http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/comment-page-1/#comment-178</link>
		<dc:creator>James Irwin</dc:creator>
		<pubDate>Wed, 12 Nov 2008 23:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=370#comment-178</guid>
		<description>I agree with your &quot;I feel that throwing an error (or warning and choosing one) whenever that situation arises would be a perfectly acceptable solution.&quot; as a way to determine whether A::B is function B in namespace A or method B in class A in case there are both.</description>
		<content:encoded><![CDATA[<p>I agree with your &#8220;I feel that throwing an error (or warning and choosing one) whenever that situation arises would be a perfectly acceptable solution.&#8221; as a way to determine whether A::B is function B in namespace A or method B in class A in case there are both.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: i_ate_god</title>
		<link>http://www.htmlist.com/development/php-5-3-namespaces-backslashes-terminals-and-you-the-art-of-language-building/comment-page-1/#comment-173</link>
		<dc:creator>i_ate_god</dc:creator>
		<pubDate>Tue, 28 Oct 2008 20:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=370#comment-173</guid>
		<description>\ is for escape characters. No one uses it for anything else, anywhere.

namespace budgets;

class nightlyTasks;

budgets\nightlyTasks::staticMethod();

Are they fucking stupid or are they fucking stupid? I&#039;ve been using PHP for a long time now, and this is the dumbest thing they&#039;ve done to date.

The justifications for it hold about the same amount of weight as well, nothing. Nothing at all. There is no valid, logical, reasonable justification for having the BACKSLASH as a separator. It will confuse text processors, it will confuse windows users, and it will confuse anyone who has to use PHP after using another language.

Namespace::class::staticMethod()

There is no ambiguity there at all, none. You know what it all is.

Time to take a serious look at Ruby now.</description>
		<content:encoded><![CDATA[<p>\ is for escape characters. No one uses it for anything else, anywhere.</p>
<p>namespace budgets;</p>
<p>class nightlyTasks;</p>
<p>budgets\nightlyTasks::staticMethod();</p>
<p>Are they fucking stupid or are they fucking stupid? I&#8217;ve been using PHP for a long time now, and this is the dumbest thing they&#8217;ve done to date.</p>
<p>The justifications for it hold about the same amount of weight as well, nothing. Nothing at all. There is no valid, logical, reasonable justification for having the BACKSLASH as a separator. It will confuse text processors, it will confuse windows users, and it will confuse anyone who has to use PHP after using another language.</p>
<p>Namespace::class::staticMethod()</p>
<p>There is no ambiguity there at all, none. You know what it all is.</p>
<p>Time to take a serious look at Ruby now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

