Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27838 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82928 invoked by uid 1010); 5 Feb 2007 23:41:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82913 invoked from network); 5 Feb 2007 23:41:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 23:41:03 -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:3520] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/E5-43531-E80C7C54 for ; Mon, 05 Feb 2007 18:41:03 -0500 Received: (qmail 34555 invoked by uid 98); 5 Feb 2007 23:41:04 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.7/2523. Clear:RC:1(127.0.0.1):. Processed in 0.116993 secs); 05 Feb 2007 23:41:04 -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.116993 secs) Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 23:41:04 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 5 Feb 2007 17:41:04 -0600 (CST) Message-ID: <47921.216.230.84.67.1170718864.squirrel@www.l-i-e.com> In-Reply-To: <3e74be4952d0cb2f771d095053225624@gravitonic.com> References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45C5EC63.7030605@cschneid.com> <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> <3e74be4952d0cb2f771d095053225624@gravitonic.com> Date: Mon, 5 Feb 2007 17:41:04 -0600 (CST) To: "Andrei Zmievski" Cc: 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 Mon, February 5, 2007 12:06 pm, Andrei Zmievski wrote: > On Feb 4, 2007, at 8:52 PM, Richard Lynch wrote: > >> 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 !!! > > The way I view [] is that it creates an array "context". When the > context is an RHS, it instantiates an array. When it's an LHS, the > context deconstructs the array. I can 'splain list() to a newbie and get them to understand it as an array deconstructor function thingie, and usually succeed in one or two tries to get it into their heads. I don't think I can do that with [] and LHS and RHS in anything like 2 tries... More like 10 times, probably. -- 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?