Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27841 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 467 invoked by uid 1010); 6 Feb 2007 00:11:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 452 invoked from network); 6 Feb 2007 00:11:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2007 00:11:40 -0000 Authentication-Results: pb1.pair.com header.from=mike@fiddy8.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mike@fiddy8.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fiddy8.com from 64.26.176.17 cause and error) X-PHP-List-Original-Sender: mike@fiddy8.com X-Host-Fingerprint: 64.26.176.17 ottawa-hs-64-26-176-17.s-ip.magma.ca Linux 2.4/2.6 Received: from [64.26.176.17] ([64.26.176.17:33187] helo=box2.fiddy8.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/29-43531-BB7C7C54 for ; Mon, 05 Feb 2007 19:11:40 -0500 Received: from mrobinson (mrobinson [192.168.1.3]) by box2.fiddy8.com (8.12.3/8.12.3/Debian-7.1) with ESMTP id l160Avd3008954; Mon, 5 Feb 2007 19:11:08 -0500 To: , Date: Mon, 5 Feb 2007 19:10:52 -0500 Message-ID: <000001c74983$4c88b6c0$0301a8c0@mrobinson> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 In-Reply-To: <35427.216.230.84.67.1170719700.squirrel@www.l-i-e.com> Thread-Index: AcdJgR2gO8T+rLP/RGGYbI9CT+UlNwAALrKw Subject: RE: [PHP-DEV] Re: Syntactic improvement to array From: mike@fiddy8.com ("Mike Robinson") References: <35427.216.230.84.67.1170719700.squirrel@www.l-i-e.com> 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; echo("foo.inc"); echo "foo.inc"; $foo = array(1,2,3); $foo = [1,2,3]; echo $foo[0]; echo $foo{0}; $foo = [1,2,3); // parse error echo("foo.inc"; // parse error Come on. This isn't rocket science, even for newcomers. It certainly isn't worthy of the [awesome] level of analysis it's getting. Holy smokes. Best, Mike Robinson