Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5261 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75648 invoked by uid 1010); 5 Nov 2003 18:36:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75624 invoked from network); 5 Nov 2003 18:36:01 -0000 Received: from unknown (HELO molly.0x539.de) (217.28.101.185) by pb1.pair.com with SMTP; 5 Nov 2003 18:36:01 -0000 Received: from pd9e55c28.dip.t-dialin.net ([217.229.92.40] helo=leetspeak.org) by molly.0x539.de with asmtp (Exim 4.14) id 1AHSSV-0002DN-8A for internals@lists.php.net; Wed, 05 Nov 2003 19:32:47 +0100 Message-ID: <3FA9431A.6020900@leetspeak.org> Date: Wed, 05 Nov 2003 19:36:10 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030924 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net References: <841D90E489448A4F804E1D1B95768BF7D4626D@lis-exchange3.lmu.ac.uk> <3FA930E7.4030405@tabini.ca> <3FA93D90.6090507@leetspeak.org> <3FA94176.3090301@tabini.ca> In-Reply-To: <3FA94176.3090301@tabini.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal: Array syntax From: cm@leetspeak.org (Michael Walter) > I guess we'll have to agree to disagree > $a = [1,2,$b[11]] is semantically inconsistent. Yeah, I agree to disagree on that one, too :) >> Actually, do you realize that you use () both for "grouping" and for >> application? I can't see anything wrong with using square brackets for >> array element access and array creation, to be honest. > > > Actually, no, I don't. I'm not sure what "grouping" and "application" > mean... $a*(1+2) vs. $a(1+2) "Grouping" (not really a good term, I'm sorry) in the sense of determining the order of evaluation. "Application" being normal function application (function call). Cheers, Michael