<?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: Namespaces in PHP?  Why *wouldn&#8217;t* you want them?</title>
	<atom:link href="http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/</link>
	<description>Facebook should&#039;ve be written in unicornSchemaLang, because everyone *knows* that PHP is no good for anything, right?</description>
	<lastBuildDate>Mon, 09 Aug 2010 16:04:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10584</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Sun, 06 Jul 2008 23:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10584</guid>
		<description>@Travis

Thanks for pointing that out to me.  Once namespaces are available I&#039;m sure I&#039;ll experiment with it.  Maybe it&#039;s one of those things where the name confuses things.  Calling it &#039;namespaces&#039; makes sense to me, but I&#039;m more sensible than some more, shall we say, militant developers.

@ken

Well, it wasn&#039;t that long ago that they weren&#039;t going to but namespaces into 5.3, so I preferred to take the safe route. ;)</description>
		<content:encoded><![CDATA[<p>@Travis</p>
<p>Thanks for pointing that out to me.  Once namespaces are available I&#8217;m sure I&#8217;ll experiment with it.  Maybe it&#8217;s one of those things where the name confuses things.  Calling it &#8216;namespaces&#8217; makes sense to me, but I&#8217;m more sensible than some more, shall we say, militant developers.</p>
<p>@ken</p>
<p>Well, it wasn&#8217;t that long ago that they weren&#8217;t going to but namespaces into 5.3, so I preferred to take the safe route. <img src='http://www.littlehart.net/atthekeyboard/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ken</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10583</link>
		<dc:creator>ken</dc:creator>
		<pubDate>Sun, 06 Jul 2008 20:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10583</guid>
		<description>&quot;Namespaces are expected to be a feature in future releases of PHP.&quot;

Might want to reword that :)

http://php.net/namespaces

&quot;Namespaces are available in PHP as of PHP 5.3.0.&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;Namespaces are expected to be a feature in future releases of PHP.&#8221;</p>
<p>Might want to reword that <img src='http://www.littlehart.net/atthekeyboard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://php.net/namespaces" rel="nofollow">http://php.net/namespaces</a></p>
<p>&#8220;Namespaces are available in PHP as of PHP 5.3.0.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis Swicegood</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10582</link>
		<dc:creator>Travis Swicegood</dc:creator>
		<pubDate>Sun, 06 Jul 2008 04:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10582</guid>
		<description>@Chris - the problem is when you do a &#039;from foo import *&#039; style import, something that I&#039;m relatively certain isn&#039;t possible in PHP 5.3 for the reason of the problem is introduces.  What happens when namespace foo and bar both have a Foo class?  Collisions occur and you get errors.

As for the nay-sayers, the problems I&#039;ve heard have all revolved around the half-attempt to implement them and the fact that they actually end up implementing what the Java world calls a package and what Python does with location based modules.  It&#039;s been more a matter of semantics, not whether or not namespaces should be there.</description>
		<content:encoded><![CDATA[<p>@Chris &#8211; the problem is when you do a &#8216;from foo import *&#8217; style import, something that I&#8217;m relatively certain isn&#8217;t possible in PHP 5.3 for the reason of the problem is introduces.  What happens when namespace foo and bar both have a Foo class?  Collisions occur and you get errors.</p>
<p>As for the nay-sayers, the problems I&#8217;ve heard have all revolved around the half-attempt to implement them and the fact that they actually end up implementing what the Java world calls a package and what Python does with location based modules.  It&#8217;s been more a matter of semantics, not whether or not namespaces should be there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10577</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Wed, 02 Jul 2008 16:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10577</guid>
		<description>@Alex

I understand what you&#039;re getting at, as any feature in any language can be abused if you&#039;re willing to try hard enough. :)

I don&#039;t quite follow your second comment though.  If you have classes with the same name in two different namespaces, why do you need to check for collisions?  As long as you specify the namespace when calling those classes, everything should be fine. 

Am I misunderstanding your question?</description>
		<content:encoded><![CDATA[<p>@Alex</p>
<p>I understand what you&#8217;re getting at, as any feature in any language can be abused if you&#8217;re willing to try hard enough. <img src='http://www.littlehart.net/atthekeyboard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I don&#8217;t quite follow your second comment though.  If you have classes with the same name in two different namespaces, why do you need to check for collisions?  As long as you specify the namespace when calling those classes, everything should be fine. </p>
<p>Am I misunderstanding your question?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stickymaddness</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10576</link>
		<dc:creator>Stickymaddness</dc:creator>
		<pubDate>Wed, 02 Jul 2008 16:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10576</guid>
		<description>Well said Chris, you pretty much summed up what I thought when I first heard about namespaces being supported in php6. IMHO it&#039;s something that would be a great addition to php. I&#039;m surprised how anti many people are to new php functionality such as namespaces or the proposed alternate array declaration syntax.</description>
		<content:encoded><![CDATA[<p>Well said Chris, you pretty much summed up what I thought when I first heard about namespaces being supported in php6. IMHO it&#8217;s something that would be a great addition to php. I&#8217;m surprised how anti many people are to new php functionality such as namespaces or the proposed alternate array declaration syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10575</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 02 Jul 2008 14:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10575</guid>
		<description>I think namespaces are (a little) useful only to library- and framework-developers.
As a &quot;frontend-programmer&quot; maybe I will never use them, because &quot;explicit is better than implicit&quot;, so I will end up writing Namespace::Subspace::Class::someMethod(), exactly as I am doing now, writing Namespace_Subspace_Class::someMethod()

Even in Python and Vala I always write the full class &quot;path&quot; when instantiating.

The problem arises when you have different classes with the same name in different namespaces, and you import them all. You have to check every namespace for collisions with others, and risk those collisions to be introduced in a later version of the library.
Or you end up having a (possibly long) list of &quot;import Foo:Bar:Baz as Baz1; import Bee::Bur::Baz as Baz2;&quot;.
This also lowers the value of __autoload(), which I use extensively with PEAR-like &quot;namespaces&quot;.

Bye.</description>
		<content:encoded><![CDATA[<p>I think namespaces are (a little) useful only to library- and framework-developers.<br />
As a &#8220;frontend-programmer&#8221; maybe I will never use them, because &#8220;explicit is better than implicit&#8221;, so I will end up writing Namespace::Subspace::Class::someMethod(), exactly as I am doing now, writing Namespace_Subspace_Class::someMethod()</p>
<p>Even in Python and Vala I always write the full class &#8220;path&#8221; when instantiating.</p>
<p>The problem arises when you have different classes with the same name in different namespaces, and you import them all. You have to check every namespace for collisions with others, and risk those collisions to be introduced in a later version of the library.<br />
Or you end up having a (possibly long) list of &#8220;import Foo:Bar:Baz as Baz1; import Bee::Bur::Baz as Baz2;&#8221;.<br />
This also lowers the value of __autoload(), which I use extensively with PEAR-like &#8220;namespaces&#8221;.</p>
<p>Bye.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10571</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Mon, 30 Jun 2008 17:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10571</guid>
		<description>@Matthew

Just read the blog post and some of the issues you are talking about seem to be easily solved.  Not trivial, as they require some refactoring work of existing code, but easily solved.  These issues will come up more and more once namespaces actually hit, and people will blame the wrong things.</description>
		<content:encoded><![CDATA[<p>@Matthew</p>
<p>Just read the blog post and some of the issues you are talking about seem to be easily solved.  Not trivial, as they require some refactoring work of existing code, but easily solved.  These issues will come up more and more once namespaces actually hit, and people will blame the wrong things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian D.</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10570</link>
		<dc:creator>Brian D.</dc:creator>
		<pubDate>Mon, 30 Jun 2008 17:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10570</guid>
		<description>I&#039;m with you on this one, Chris! I&#039;ve not really kept up with internals, either, but on PHP Planet and elsewhere I&#039;ve not understood why it&#039;s even an issue.</description>
		<content:encoded><![CDATA[<p>I&#8217;m with you on this one, Chris! I&#8217;ve not really kept up with internals, either, but on PHP Planet and elsewhere I&#8217;ve not understood why it&#8217;s even an issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Weier O'Phin</title>
		<link>http://www.littlehart.net/atthekeyboard/2008/06/30/namespaces-in-php-why-wouldnt-you-want-them/comment-page-1/#comment-10569</link>
		<dc:creator>Matthew Weier O'Phin</dc:creator>
		<pubDate>Mon, 30 Jun 2008 16:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/?p=281#comment-10569</guid>
		<description>BTW, Chris, you may also want to read my blog posting on the subject, and some of the potential issues we&#039;re seeing in Zend Framework with migrating to true namespaces from the pseudo-namespaces we already currently employ: http://weierophinney.net/matthew/archives/181-Migrating-OOP-Libraries-and-Frameworks-to-PHP-5.3.html</description>
		<content:encoded><![CDATA[<p>BTW, Chris, you may also want to read my blog posting on the subject, and some of the potential issues we&#8217;re seeing in Zend Framework with migrating to true namespaces from the pseudo-namespaces we already currently employ: <a href="http://weierophinney.net/matthew/archives/181-Migrating-OOP-Libraries-and-Frameworks-to-PHP-5.3.html" rel="nofollow">http://weierophinney.net/matthew/archives/181-Migrating-OOP-Libraries-and-Frameworks-to-PHP-5.3.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
