Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5264 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9723 invoked by uid 1010); 5 Nov 2003 18:56:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9597 invoked from network); 5 Nov 2003 18:56:53 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 5 Nov 2003 18:56:53 -0000 Received: from ip-66-80-117-2.nyc.megapath.net ([66.80.117.2] helo=[10.80.116.129]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1AHSpp-0007MA-FO; Wed, 05 Nov 2003 13:56:53 -0500 In-Reply-To: <3FA94176.3090301@tabini.ca> References: <841D90E489448A4F804E1D1B95768BF7D4626D@lis-exchange3.lmu.ac.uk> <3FA930E7.4030405@tabini.ca> <3FA93D90.6090507@leetspeak.org> <3FA94176.3090301@tabini.ca> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Cc: Michael Walter , internals@lists.php.net Date: Wed, 5 Nov 2003 13:56:40 -0500 To: Marco Tabini X-Mailer: Apple Mail (2.606) Subject: Re: [PHP-DEV] Proposal: Array syntax From: george@omniti.com (George Schlossnagle) On Nov 5, 2003, at 1:29 PM, Marco Tabini wrote: > $a = [1,2,$b[11]] is semantically inconsistent. How so? Is foo(array(1,2)); semantically inconsistent? On one hand () is used with a language construct (array()), whereas in the other context it indicates arguments to a function. I think that is what he meant by 'grouping' and 'application'. Similar tokens have different syntactical meaning all over the language. Compare '<<' and '<<<'. To me that is no diffent that [] and []. George (still -1, but because it makes for unmaintainable code, not because it's hard to read)