{"id":18,"date":"2007-07-13T21:11:01","date_gmt":"2007-07-14T01:11:01","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/13\/namespaces\/"},"modified":"2007-07-13T21:11:01","modified_gmt":"2007-07-14T01:11:01","slug":"namespaces","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/13\/namespaces\/","title":{"rendered":"Namespaces++"},"content":{"rendered":"<p>PHP 6 now has <a href=\"http:\/\/news.php.net\/php.zend-engine.cvs\/5894\">namespace support<\/a> checked into CVS. Unfortunately, they opted for the easy route: a single namespace construct at the top of a file declares the namespace for everything contained within that file. In other words, <b>completely contradictory to every other construct in the language<\/b>. It also limits you from ever using two namespaces within the same file. And all for no good reason. I even got involved and <a href=\"http:\/\/news.php.net\/php.internals\/30870\">posted<\/a> to the <a href=\"http:\/\/news.php.net\/php.internals\">php.internals<\/a> mailing list (unsurprisingly, with little, if any, effect).<\/p>\n<p>&lt;\/rant&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 6 now has namespace support checked into CVS. Unfortunately, they opted for the easy route: a single namespace construct at the top of a file declares the namespace for everything contained within that file. In other words, completely contradictory to every other construct in the language. It also limits you from ever using two [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}