Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20462 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92234 invoked by uid 1010); 25 Nov 2005 22:56:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92219 invoked from network); 25 Nov 2005 22:56:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2005 22:56:11 -0000 X-Host-Fingerprint: 81.68.134.212 c514486d4.cable.wanadoo.nl Received: from ([81.68.134.212:14844] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B0/08-56276-B8697834 for ; Fri, 25 Nov 2005 17:56:11 -0500 Message-ID: To: internals@lists.php.net References: <7.0.0.16.2.20051124161240.0573e640@zend.com> <90.0E.56276.6D207834@pb1.pair.com> <200511251419.56809.pookey@pookey.co.uk> <57.B8.56276.65B27834@pb1.pair.com> <73998811.20051125204046@marcus-boerger.de> <438782C6.80008@gmail.com> <43878626.5060300@lerdorf.com> <512771162.20051125225926@marcus-boerger.de> <43878C41.4030205@gmail.com> <43878D08.4020105@lerdorf.com> Date: Fri, 25 Nov 2005 23:53:38 +0100 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 81.68.134.212 Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: r.korving@xit.nl ("Ron Korving") "Rasmus Lerdorf" wrote in message news:43878D08.4020105@lerdorf.com... > Jessie Hernandez wrote: > > Hi Marcus, > > > > Marcus Boerger wrote: > >> Hello Jessie, > >> > >> that's only one case,go with consts. now try > >> $x = $y ? foo:bar:baz:stupid; > >> > >> now what? > >> > >> best regards > >> marcus > >> > > > > Here it'll fail. My patch is basically allowing colons inside the > > class/function/constant name, so whitespace here is _crucial_, i.e., the > > following example WOULD work: > > > > $x = $y ? foo:bar : baz:stupid; > > Forcing whitespace here isn't an option. It is completely inconsistent > with the rest of PHP. > > -Rasmus Right, forcing whitespace is ugly when it never had to be used before, but a warning or error could be thrown when users should fall back on for example $x = $y ? (foo:bar):(baz:stupid) Ron