Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20780 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22066 invoked by uid 1010); 28 Nov 2005 21:52:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22051 invoked from network); 28 Nov 2005 21:52:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2005 21:52:18 -0000 X-Host-Fingerprint: 84.60.16.212 dslb-084-060-016-212.pools.arcor-ip.net Received: from ([84.60.16.212:9930] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4F/D1-21657-21C7B834 for ; Mon, 28 Nov 2005 16:52:18 -0500 Message-ID: <4F.D1.21657.21C7B834@pb1.pair.com> To: internals@lists.php.net Date: Mon, 28 Nov 2005 22:52:14 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Posted-By: 84.60.16.212 Subject: Namespaces: Technical proposal From: oliver.graetz@arcor.de (=?ISO-8859-15?Q?Oliver_Gr=E4tz?=) Hi folks! I had some PM discussions about the (presumably premature) death of ":" as the namespace symbol. Most people liked this, some liked "::" (which will definetely NOT work) and then the opinion was very split with a lot of people saying "OK, if it has to be" to ":::". Some folks even resigned and went for the widely hated "\". I'll recompile a table later this night with corrected opinions (don't worry, I have redflagged all vote posts in my Thunderbird). But now there might be a possibility to go with ":". Jessie will test this out and I suppose he'll come out with results (hopefully positive). Here's the idea: When the tokenizer encounters the opening "?" of the ternary, it DEACTIVATES the namespace operator until the end of the ternary. This way, all old code will behave as before, nothing will be broken. Of course, this absolutely requires the use of parentheses if one absolutely needs to use namespaces inside the ternary. As such cases will be pretty rare, this is no big drawback. The good thing: no whitespace magic is needed! Comments? OLLi