Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40789 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93903 invoked from network); 29 Sep 2008 17:29:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2008 17:29:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seld.be from 209.85.217.14 cause and error) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 209.85.217.14 mail-gx0-f14.google.com Received: from [209.85.217.14] ([209.85.217.14:39285] helo=mail-gx0-f14.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/D0-36431-D7011E84 for ; Mon, 29 Sep 2008 13:29:34 -0400 Received: by gxk7 with SMTP id 7so10637738gxk.23 for ; Mon, 29 Sep 2008 10:29:30 -0700 (PDT) Received: by 10.151.108.20 with SMTP id k20mr8209413ybm.150.1222709370220; Mon, 29 Sep 2008 10:29:30 -0700 (PDT) Received: by 10.151.110.2 with HTTP; Mon, 29 Sep 2008 10:29:30 -0700 (PDT) Message-ID: <4bcbf4710809291029i29759302p4dcb3eafc1c65737@mail.gmail.com> Date: Mon, 29 Sep 2008 19:29:30 +0200 To: internals@lists.php.net Cc: "Arvids Godjuks" In-Reply-To: <200809291835.45551.et@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9E3A4397-3595-42D8-BF73-7F7575B93772@pooteeweet.org> <4bcbf4710809290743m57acbe96q857fb733f32d0ea8@mail.gmail.com> <9b3df6a50809290905w3ef8bee7jde8f34e0ad1c9ffd@mail.gmail.com> <200809291835.45551.et@php.net> Subject: Re: [PHP-DEV] alpha3 From: j.boggiano@seld.be ("Jordi Boggiano") On 9/29/08, Stefan Walk wrote: > > > So as prevoius speaker suggested, and I personaly got to conclusion in > > other thread that ":" is ideal. Short, isn't taken. > > $a = $b?A:B:C:D; It's only a problem when you use fully qualified names inside a ternary operation, and can easily be fixed with parenthesis in this particular case, so it still looks much better than the current situation to me, and I'm pretty sure everyone would agree on using ":" as a separator if it weren't from that small glitch. The use of parenthesis is not that big a deal if it's restricted to ternary operator uses, there are some places already where you're forced to use them for disambiguation. We could also keep ::foo() as the way to address the global namespace, which might allow $a ? ::foo() : ::bar() without parenthesis ? I don't know enough about the parser to say though. -- Jordi