Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41163 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46238 invoked from network); 16 Oct 2008 18:43:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2008 18:43:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 74.125.44.29 yx-out-2324.google.com Received: from [74.125.44.29] ([74.125.44.29:35275] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/AE-12818-23B87F84 for ; Thu, 16 Oct 2008 14:42:59 -0400 Received: by yx-out-2324.google.com with SMTP id 3so49799yxj.83 for ; Thu, 16 Oct 2008 11:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=ZixTT4EnmZk/c05EfThIwBsHPMsqGimShz0GjLxDdSw=; b=GK4gzB3Pu6jHq7KHMzUP7jp6kV2A7mvo9lBEHcIIFEaeQyMYCB/DFA+EhyAVNg4MTJ 1WjtXJEqgrcsbLoJ/3SwgCZERKQvi7M5iRVRWRGswTtYAyIe6+YlYwkv23sQHwtod8I9 NlD7Uh7kKAfcF7mP1Z1FwLlw2rSUhKjpPFVaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=XHUYbc9OBRmrkjxqlypr2X2rTocIbKluhWb0rTHFFgDfeXZtSl3WVNsklL1ttF3/xu 1DBINU08qjRq/1KbvuRZBNTpQBvfJ/AUEvA5I54SHPai/Z7aJRx+KVtZkKDBL43svG8n KCJfeXnkvPdzRK0jOONfezjR1Hx3ZAPI6p9x4= Received: by 10.142.81.6 with SMTP id e6mr895380wfb.31.1224182575627; Thu, 16 Oct 2008 11:42:55 -0700 (PDT) Received: by 10.142.230.16 with HTTP; Thu, 16 Oct 2008 11:42:55 -0700 (PDT) Message-ID: Date: Thu, 16 Oct 2008 11:42:55 -0700 To: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_37742_12234880.1224182575614" References: <48F653FF.5010106@chiaraquartet.net> <48F75FA1.7020505@zend.com> <0C55B977-3835-4CB0-A23B-8AA684B71C18@pooteeweet.org> <48F772CD.80600@zend.com> <48F775DD.5010202@chiaraquartet.net> <48F777B4.2050609@gmail.com> <025a01c92fb6$95d8b350$3ffc1f3e@foxbox> Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: chrisstocktonaz@gmail.com ("Chris Stockton") ------=_Part_37742_12234880.1224182575614 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have been watching the namespace conversations for months and I can not get my head around this fixation on a new separator. Other languages get by without separate resolution syntax, why not solve these ambiguities through rules of precedence like everyone else? Throw possible ambiguity warnings if we don't mind looking ahead for the performance hit and give users the ability to alias their namespaces with AS when conflicts do occur they can be easily fixed. using BadNamedLib as BetterNamedLib; using BadNamedLib; Resolve using :: as a separator, have some simple rules and document them, first namespace's loaded classes takes precedence over the last. Constansts are more important then classes, or vice versa. Document the determined precedence. Giving users a tool to alias namespaces solves a lot of the namespace resolution issues. Just my thoughts, -Chris ------=_Part_37742_12234880.1224182575614--