Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27823 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44251 invoked by uid 1010); 5 Feb 2007 19:16:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44230 invoked from network); 5 Feb 2007 19:16:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 19:16:54 -0000 Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; 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:37656] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/BB-61367-4A287C54 for ; Mon, 05 Feb 2007 14:16:53 -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 l15JGjiL014559; Mon, 5 Feb 2007 11:16:45 -0800 In-Reply-To: <1170700129.15039.219.camel@notebook.local> 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> <1170700129.15039.219.camel@notebook.local> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Cc: ceo@l-i-e.com, Andi Gutmans , Christian Schneider , internals@lists.php.net Date: Mon, 5 Feb 2007 11:17:50 -0800 To: Todd Ruth 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) Good question. If it's possible to make it behave this way, I don't see why not. On the other hand, if you take list(), it can't be used in RHS. -Andrei On Feb 5, 2007, at 10:28 AM, Todd Ruth wrote: > Would this be legal? > > function f() { > return [ 1, 2 ]; > } > > $x = [ $a, $b ] = f(); > > In the end, would we have...? > $a = 1; > $b = 2; > $x = array(1,2); > > I'm not trying to be positive or negative about the > syntax. I'm just "testing" somewhat edge cases. > > - Todd