Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48046 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44088 invoked from network); 21 Apr 2010 17:34:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2010 17:34:47 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:34449] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/E6-63467-5373FCB4 for ; Wed, 21 Apr 2010 13:34:46 -0400 Received: from us-gw1.zend.com (unknown [192.168.16.5]) by il-mr1.zend.com (Postfix) with ESMTP id 755B0504BB; Wed, 21 Apr 2010 20:13:29 +0300 (IDT) Received: from [192.168.27.11] ([192.168.27.11]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 21 Apr 2010 10:33:30 -0700 Message-ID: <4BCF36E6.8040005@zend.com> Date: Wed, 21 Apr 2010 10:33:26 -0700 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Adi Nita CC: internals@lists.php.net References: <4BCE44B8.6060600@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Apr 2010 17:33:30.0136 (UTC) FILETIME=[C20BD180:01CAE178] Subject: Re: [PHP-DEV] A critique of PHP 6 From: stas@zend.com (Stanislav Malyshev) Hi! > You know, there is a world out there too, outside the "deep and wide > class hierarchies". I really doubt that namespaces were introduced in > the language with the sole purpose of grouping hundreds of classes. But > you can, if you make everything a class. Of course, you know much more that I do about why namespaces were introduced, but while there is indeed wide world out there, namespaces aren't meant to be everything to everybody in this world. They were meant to solve specific problem, which is management of name hierarchies, because as they grew wider and deeper, names grew longer and more complex to avoid name collisions, and that became a serious nuisance. You can, of course, use namespaces for other things, but renaming strlen() doesn't seem to me being worth it. > Here > http://www.php.net/~derick/meeting-notes.html#type-hinted-properties-and-return-values. > But this may be outdated, sorry if I may not know well. Since 2005 a lot happened... return type hints still don't have consensus required to introduce them, and ample discussion can be found in the archives if you are interested in the reason why. > When I said global namespace, I meant outside any class as well, where > we would normally use /define/. My focus was that constants are not So why not use define()? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com