Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41268 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34760 invoked from network); 18 Oct 2008 21:59:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2008 21:59:45 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:56306] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/78-11719-05C5AF84 for ; Sat, 18 Oct 2008 17:59:45 -0400 Received: from MBOERGER-ZRH.corp.google.com (41-88.106-92.cust.bluewin.ch [92.106.88.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 3F02211DBDA; Sat, 18 Oct 2008 23:59:41 +0200 (CEST) Date: Sat, 18 Oct 2008 23:56:54 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <798986500.20081018235654@marcus-boerger.de> To: internals@lists.php.net CC: "William A. Rowe, Jr." , Greg Beaver In-Reply-To: <610432496.20081018230350@marcus-boerger.de> References: <48F89F19.9040405@croscon.com> <48F8D221.4090805@rowe-clan.net> <610432496.20081018230350@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Namespace issues From: helly@php.net (Marcus Boerger) Hello all, Greg was so kind to give me part of his awesome upcoming Pyrus code. He actually has it running with both ':::' and '\' as namespace separators. So I thought I'd help out a tiny tiny bit by giving you all the choice of having a look at actual working code: http://php.net/~helly/triplecolon.html http://php.net/~helly/triplecolon-colored.html http://php.net/~helly/backslash-colored.html http://php.net/~helly/backslash.html marcus Saturday, October 18, 2008, 11:03:50 PM, you wrote: > Hello William, > Friday, October 17, 2008, 7:57:53 PM, you wrote: >> Marcel Esser wrote: >>> Using ::: as a namespace seperator would be great. >> A general rule of telephony dialing and other data input, three of >> the same character will too often be entered or recognized as two >> or four characters due to user or mechanical error. That's why >> when you see mnemonic phone numbers they rarely repeat three >> digits in the middle (three 0's at the end for example aren't >> subject to the excess fourth repetition problem). > This is the major flaw with that solution. Personally I just looked at > working code that had (:::) and (\) which is the second option I also > mentioned already long ago. And (:::) can be read very easy. The visual > difference to (::) is big enough. However it is too easy to either type > two or four. Thus the backslash (the only other conflict free) character > is probably the better option - even though no one has done something > like that. Btw, it pretty much suggests thatyou use the same structure > for your directories and files. Which you'd do inside __autoload() most > likely anyway. > Best regards, > Marcus Best regards, Marcus