Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59122 invoked by uid 1010); 26 Nov 2005 11:23:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59107 invoked from network); 26 Nov 2005 11:23:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 11:23:41 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:51310] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 31/96-56276-BB548834 for ; Sat, 26 Nov 2005 06:23:39 -0500 Received: from [192.168.1.3] (dslb-084-063-047-015.pools.arcor-ip.net [84.63.47.15]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 5E4A4610282; Sat, 26 Nov 2005 12:29:52 +0100 (CET) Date: Sat, 26 Nov 2005 12:21:38 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1638013035.20051126122138@marcus-boerger.de> To: =?iso-8859-1?Q?Oliver_Gr=E4tz?= Cc: internals@lists.php.net In-Reply-To: <6B.D6.56276.154E7834@pb1.pair.com> 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> <6B.D6.56276.154E7834@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: helly@php.net (Marcus Boerger) Hello Oliver, it doesn't matter to the compiler whether it is nonsense or not. The only thing that matters is whether i can write a correct lexer/parser for this without breaking stuff. Guys if we were requiring space around the ternary or anything else we don't do right now then the damage is much much worse than with class Date. marcus Saturday, November 26, 2005, 5:27:54 AM, you wrote: > Marcus Boerger schrieb: >> Hello Jessie, >> >> that's only one case,go with consts. now try >> $x = $y ? foo:bar:baz:stupid; > That's nonsense. If I as a programmer cannot comprehend what it should > mean by looking at it then I shouldn't expect that from the language. > To me, this looks like the constant stupid in the class baz of the > subnamespace (?) bar of the namespace foo and the statement lacks the > third parameter. Or well, should it...? The heck, let's put brackets. > Ah! Now it's clear. And this is the moment where I would expect the > language to understand it, too. > OLLi Best regards, Marcus