Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75784 invoked by uid 1010); 7 Feb 2007 02:38:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75769 invoked from network); 7 Feb 2007 02:38:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2007 02:38:18 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2078] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/5C-18288-A9B39C54 for ; Tue, 06 Feb 2007 21:38:18 -0500 Received: (qmail 68449 invoked by uid 98); 7 Feb 2007 02:38:21 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.7/2527. Clear:RC:1(127.0.0.1):. Processed in 0.11653 secs); 07 Feb 2007 02:38:21 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.11653 secs) Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 7 Feb 2007 02:38:21 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Tue, 6 Feb 2007 20:38:21 -0600 (CST) Message-ID: <38490.216.230.84.67.1170815901.squirrel@www.l-i-e.com> In-Reply-To: References: <35427.216.230.84.67.1170719700.squirrel@www.l-i-e.com> Date: Tue, 6 Feb 2007 20:38:21 -0600 (CST) To: "Andrei Zmievski" Cc: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: ceo@l-i-e.com ("Richard Lynch") Actually, this one was prompted by seeing a bug fix or changelog about requiring { } and : endif; to match up, rather than accepting either/or in balance. Synchronicity that I even saw that item, but there it is. I would HOPE that they'd have to balance, but if they don't for the long block syntax instead of braces, maybe they shouldn't. Once you have two ways to delimit start and end, you ought to nail down what does or doesn't work. The Regex thing with < and > for start/end delimiters is also a counter-example of what other people seem to like. I prefer not to take things for granted when defining new syntax, personally. On Tue, February 6, 2007 11:28 am, Andrei Zmievski wrote: > Now you're just grandstanding. > > -Andrei > > > On Feb 5, 2007, at 3:55 PM, Richard Lynch wrote: > >> More edge cases: >> >> $foo = array(1, 2, 3]; >> $bar = [1, 2, 3); >> >> Syntax error because it's unbalancedO >> >> Or kosher, because the choice of start/end delimiters should be up >> to >> the user? >> >> Should it match whatever rule is in place for: >> >> if (...){ >> endif; >> >> >> >> -- >> Some people have a "gift" link here. >> Know what I want? >> I want you to buy a CD from some starving artist. >> http://cdbaby.com/browse/from/lynch >> Yeah, I get a buck. So? >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?