Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5266 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32882 invoked by uid 1010); 5 Nov 2003 19:10:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32858 invoked from network); 5 Nov 2003 19:10:54 -0000 Received: from unknown (HELO tabini.ca) (198.63.211.18) by pb1.pair.com with SMTP; 5 Nov 2003 19:10:54 -0000 Received: from cpe0080c80c4893-cm013439900542.cpe.net.cable.rogers.com ([24.156.158.54] helo=tabini.ca) by tabini.ca with asmtp (TLSv1:AES256-SHA:256) (Exim 4.22) id 1AHT62-0004Li-Lh; Wed, 05 Nov 2003 13:13:39 -0600 Message-ID: <3FA94B44.5080103@tabini.ca> Date: Wed, 05 Nov 2003 14:11:00 -0500 Organization: Marco Tabini & Associates, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031023 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: George Schlossnagle CC: Michael Walter , 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: X-Enigmail-Version: 0.81.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal: Array syntax From: marcot@tabini.ca (Marco Tabini) George Schlossnagle wrote: > > On Nov 5, 2003, at 1:29 PM, Marco Tabini wrote: > >> $a = [1,2,$b[11]] is semantically inconsistent. > > > How so? Is > I think I've already explained why. > 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'. > Actually, I think it meant something else. In any case, semantically you can still think of array() as a function (until you throw in key declarations, of course ;) ) > Similar tokens have different syntactical meaning all over the > language. Compare '<<' and '<<<'. To me that is no diffent that > [] and []. Again, that's not a good reason to introduce more. Mt. > > George (still -1, but because it makes for unmaintainable code, not > because it's hard to read) >