Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51119 invoked from network); 16 Jun 2011 17:48:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2011 17:48:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:42758] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/70-47775-BF14AFD4 for ; Thu, 16 Jun 2011 13:48:43 -0400 Received: by qyk32 with SMTP id 32so84378qyk.8 for ; Thu, 16 Jun 2011 10:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=N5xJFr47O6qggfIUvdB/uFt1Fp/XyluPfTV8k1NMsPE=; b=a30okvbO9pwQ1VyxRbklGDeyQmQVTwwwOAe2TlICEc4ZG5gJH5keHervakI574gD0g twp4ct8kAZYhOYPaP394EHh3DZw0TkNEYEaqq7OmAaIKKSQ/c1ngTUkvBud9tmrB0bmT AxsOmncFQ+JMxrYcEINR7X90xISWcc7j0WJhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; b=j3b9tcNFBJDJMH4S3B+S3Ar/hGBahJrmUcq4hJKIr28ygShoAHLsoUUne5VvE01tQN KDRULxBr+v1pwLcJsbvnoBYL7CSK00HI4HgOt70xNvesC7iwSSazAu6Y9CzhkXHuHA+5 YEWdDQO2FAJZQs/bMw0/7/MOlVmcPIci4qKew= Received: by 10.229.95.144 with SMTP id d16mr1029846qcn.37.1308246519821; Thu, 16 Jun 2011 10:48:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.80.79 with HTTP; Thu, 16 Jun 2011 10:48:16 -0700 (PDT) Reply-To: RQuadling@GMail.com In-Reply-To: <4DFA31EF.1050900@sugarcrm.com> References: <4DF8DC94.5060009@sugarcrm.com> <4DFA31EF.1050900@sugarcrm.com> Date: Thu, 16 Jun 2011 18:48:16 +0100 Message-ID: To: Stas Malyshev Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Getting a list of registered namespaces. From: rquadling@gmail.com (Richard Quadling) On 16 June 2011 17:40, Stas Malyshev wrote: > Hi! > > On 6/16/11 8:37 AM, Richard Quadling wrote: >> >> Maybe, but because of a lack of convention on naming, we have namespaces. > > No, we have namespaces not because we couldn't agree on naming convention, > but because any naming convention without namespaces would lead to ugly code > (which you call "sensible long names" but which rapidly stop being sensible > if you actually try to do it). I was joking. > >> So it would seem appropriate to have the ability to investigate a >> namespace to see what it contains and/or if it exists. >> >> Why? For exactly the same reasons you have class_exists(), >> interface_exists(), function_exists(). > > Classes and functions actually exist as objects in the engine. Namespaces do > not. They are just parts of names. You can not instantiate a namespace, you > can not call a namespace. So these reasons do not apply. And now I understand. Thanks for that. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea