Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19476 invoked by uid 1010); 5 Feb 2007 04:52:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19461 invoked from network); 5 Feb 2007 04:52:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 04:52:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2618] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/4E-18726-608B6C54 for ; Sun, 04 Feb 2007 23:52:22 -0500 Received: (qmail 5946 invoked by uid 98); 5 Feb 2007 04:52:26 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.7/2522. Clear:RC:1(127.0.0.1):. Processed in 0.07267 secs); 05 Feb 2007 04:52:26 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.07267 secs) Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 04:52:25 -0000 Received: from 67.184.122.32 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Sun, 4 Feb 2007 22:52:25 -0600 (CST) Message-ID: <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> In-Reply-To: <45C5EC63.7030605@cschneid.com> References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45C5EC63.7030605@cschneid.com> Date: Sun, 4 Feb 2007 22:52:25 -0600 (CST) To: "Christian Schneider" Cc: "Andi Gutmans" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: ceo@l-i-e.com ("Richard Lynch") On Sun, February 4, 2007 8:23 am, Christian Schneider wrote: > Andi Gutmans wrote: >> So what I'm thinking of is: >> array(1, 2, 3) == [1, 2, 3] > > I like this syntax, more conscise but still clear (and well > established > in other languages by now). > > Two more thoughts (but please don't kill Andi's proposal because of > it, > rather dismiss my comments instead ;-)): > - [$a, $b, $c] = ... equivalent to list($a, $b, $c) = ... Ewwwwwwww! So now we have an invisible operator with a magical symbol '[' which *sometimes* means create an array, but *sometimes* means to de-construct an array into individual variables? That's just disgusting, imho. -1 !!! > - func('foo' => $foo, 'bar' => $bar, ...) equivalent to > func(array('foo' => $foo, 'bar' => $bar, ...), see > http://cschneid.com/php/ for more info Again, saving 5 characters just to confuse the hell out of idiots like me does not seem like a "win" for PHP. :-v -1 -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?