Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41734 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18399 invoked from network); 6 Nov 2008 18:14:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2008 18:14:09 -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 63.205.162.116 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.116 us-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [63.205.162.116] ([63.205.162.116:24877] helo=us-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/9F-44653-0F333194 for ; Thu, 06 Nov 2008 13:14:09 -0500 Received: from [192.168.16.110] ([192.168.16.110]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 6 Nov 2008 10:14:09 -0800 Message-ID: <491333F2.5070105@zend.com> Date: Thu, 06 Nov 2008 10:14:10 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Stan Vassilev | FM CC: internals@lists.php.net References: <4EA88C3A8A2747989925A5D21448FCE7@pc> In-Reply-To: <4EA88C3A8A2747989925A5D21448FCE7@pc> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Nov 2008 18:14:09.0916 (UTC) FILETIME=[76EB73C0:01C9403B] Subject: Re: [PHP-DEV] Call it: allow reserved words in a class or not? From: stas@zend.com (Stanislav Malyshev) Hi! > As you know, with the new convention, the parser will not encounter T_STRING "Zend\Validate\Interface" but rather: With namespaces, class name would not be Zend\Validate\Interface. Having namespaces, it would make much more sense to make last component a descriptive name, so you won't have code like this: if($object instanceof Interface) { // wtf am I checking here? ... As for how exactly that descriptive name should look - I guess each framework's developers that plan to support namespaces think about it hard right now. I know ZF developers do :) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com