Re: Simple Namespace Proposal

From: Date: Sat, 07 Jul 2007 02:00:46 +0000
Subject: Re: Simple Namespace Proposal
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-30579@lists.php.net to get a copy of this message
Lets not say what i didnt say...did anyone ask for class a ( class b ( ) ) i believe not.. the point was to keep the same coding standards if i may say so than classes, interfaces, abstracts, etc. simply for consistency and normalization.. ps sorry for brackets its from my mobile phone On 7/6/07, Stanislav Malyshev <stas@zend.com> wrote:
namespace A::B { class BooYa {
       const C = 'Foo';
} } --- Then.. import A::B::BooYa; echo BooYa::C; Well, we could have braces but... That way we can put more than one namespace within a file or such... That is exactly what I don't want to have, since then you can't see in the file which name means what - you'd have to trace it back to including namespace to see what is the real name of the class. Also if we do braces next thing would be asked to do namespace { namespace {} } and we don't want that either :) We try to keep it really simple. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com
-- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18

« previous php.internals (#30579) next »