Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27815 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94163 invoked by uid 1010); 5 Feb 2007 18:05:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94146 invoked from network); 5 Feb 2007 18:05:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 18:05:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:34884] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/73-61367-6F177C54 for ; Mon, 05 Feb 2007 13:05:44 -0500 Received: from [66.228.175.145] (borndress-lm.corp.yahoo.com [66.228.175.145]) (authenticated bits=0) by lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l15I5WP2002245; Mon, 5 Feb 2007 10:05:32 -0800 In-Reply-To: <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45C5EC63.7030605@cschneid.com> <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <3e74be4952d0cb2f771d095053225624@gravitonic.com> Content-Transfer-Encoding: 7bit Cc: "Christian Schneider" , "Andi Gutmans" , internals@lists.php.net Date: Mon, 5 Feb 2007 10:06:36 -0800 To: ceo@l-i-e.com X-Mailer: Apple Mail (2.624) X-Virus-Scanned: ClamAV 0.90rc3/2525/Mon Feb 5 08:11:08 2007 on colo X-Virus-Status: Clean Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: andrei@gravitonic.com (Andrei Zmievski) 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. -Andrei