Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33779 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8655 invoked by uid 1010); 5 Dec 2007 21:46:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8637 invoked from network); 5 Dec 2007 21:46:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 21:46:30 -0000 Authentication-Results: pb1.pair.com header.from=webmaster@keryx.se; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=webmaster@keryx.se; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain keryx.se designates 208.69.121.33 as permitted sender) X-PHP-List-Original-Sender: webmaster@keryx.se X-Host-Fingerprint: 208.69.121.33 supavet.nexcess.net Received: from [208.69.121.33] ([208.69.121.33:52250] helo=supavet.nexcess.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/04-12052-43C17574 for ; Wed, 05 Dec 2007 16:46:30 -0500 Received: (qmail 10659 invoked by uid 108); 5 Dec 2007 21:45:22 -0000 Received: from unknown (HELO ?127.0.0.1?) (gunther@keryx.se@87.227.57.139) by supavet.nexcess.net with ESMTPA; 5 Dec 2007 21:45:22 -0000 Message-ID: <47571BF1.10202@keryx.se> Date: Wed, 05 Dec 2007 22:45:21 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: PHP Developers Mailing List References: <4755FB31.2050901@zend.com> <4756E3AF.2070703@zend.com> <4756EC80.1070500@iamjochem.com> <4756F146.3050306@zend.com> In-Reply-To: <4756F146.3050306@zend.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 071205-2, 2007-12-05), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] Namespace From: webmaster@keryx.se (Keryx Web) Stanislav Malyshev skrev: >> +1 for putting namespaces on the backburner and taking the time to >> get it 100% right ... > > What's "100% right"? Any proposals (besides braces)? > Actually I did mention an alternative a while ago, and that would be to learn from ECMAScript 4. This is from John Resigs talks: import dojo.query; import jquery.query; use namespace dojo; query(“#foo”) // using dojo use namespace jquery; query(“div > .foo”) // using jquery No braces, but one is still able to switch from one namespace to another within the same file. As a teacher I think this style would make sense to a newbie. I do not claim that this is the "right" way, though, or that there is such a thing. But it is an option. Lars Gunther