Re: Call it: allow reserved words in a class or not?

From: Date: Thu, 06 Nov 2008 18:14:10 +0000
Subject: Re: Call it: allow reserved words in a class or not?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-41734@lists.php.net to get a copy of this message
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

« previous php.internals (#41734) next »