Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75125 invoked by uid 1010); 11 Jan 2008 01:14:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75110 invoked from network); 11 Jan 2008 01:14:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 01:14:24 -0000 Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 76.96.62.64 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 76.96.62.64 qmta07.westchester.pa.mail.comcast.net Received: from [76.96.62.64] ([76.96.62.64:59495] helo=QMTA07.westchester.pa.mail.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/53-51656-FE2C6874 for ; Thu, 10 Jan 2008 20:14:24 -0500 Received: from OMTA04.westchester.pa.mail.comcast.net ([76.96.62.35]) by QMTA07.westchester.pa.mail.comcast.net with comcast id bY3V1Y0060ldTLk050Vf00; Fri, 11 Jan 2008 01:14:22 +0000 Received: from earth.ufp ([71.228.13.89]) by OMTA04.westchester.pa.mail.comcast.net with comcast id bdEG1Y00J1vH2xB3Q00000; Fri, 11 Jan 2008 01:14:17 +0000 X-Authority-Analysis: v=1.0 c=1 a=FhV8opi41vwA:10 a=Py2HjrZ5kVevb54rVZYA:9 a=UJ_1NwQO3BcUrvnrKc0A:7 a=92gh1LHWavwvQ326YboMEdx5u30A:4 a=FHBbIDN7CdwA:10 a=LY0hPdMaydYA:10 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id F3699D7C69 for ; Thu, 10 Jan 2008 19:14:21 -0600 (CST) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EuNAji0PT0jU for ; Thu, 10 Jan 2008 19:14:21 -0600 (CST) Received: from vulcan.ufp (vulcan.ufp [192.168.42.4]) by earth.ufp (Postfix) with ESMTP id 86780D7A5D for ; Thu, 10 Jan 2008 19:14:11 -0600 (CST) To: internals@lists.php.net Date: Thu, 10 Jan 2008 19:18:10 -0600 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <7f3ed2c30801100556y14b27d5es24eb8865b9f330e2@mail.gmail.com> <200801101612.30430.tomi@cumulo.fi> In-Reply-To: <200801101612.30430.tomi@cumulo.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200801101918.10525.larry@garfieldtech.com> Subject: Re: [PHP-DEV] [RFC] Square brackets shortcut From: larry@garfieldtech.com (Larry Garfield) On Thursday 10 January 2008, Tomi Kaistila wrote: > Well if confusing is the goal, then yes, since this is classic Perl. > > I started using PHP, instead of Perl, just so that I would not need play > around with confusing syntax. > > Tomi Kaistila > PHP Developer The [] array literal syntax is also used by Javascript, and there's even an object literal syntax, {}, which is quite nice. Does that mean "Javascript is classic Perl"? The [a:b, c:d] syntax would be more JSON-esque, while [a => b] syntax would be more consistent with existing PHP. The latter, I think, would get better traction with existing developers and be easier to understand (since it uses the same separator character). -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson