Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56143 invoked by uid 1010); 9 Nov 2006 23:12:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56128 invoked from network); 9 Nov 2006 23:12:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2006 23:12:49 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.235 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.184.235 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.235] ([64.233.184.235:40526] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/94-24370-FE5B3554 for ; Thu, 09 Nov 2006 18:12:48 -0500 Received: by wr-out-0506.google.com with SMTP id i21so238070wra for ; Thu, 09 Nov 2006 15:12:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=iYlK6KVBzJnxA5sEILtCpGY55zBmFUj9KavxYj8BpCEJNONwjQsqcOO4w54HYg4JTTDA4sCYnV/IONeb06LewlBDkWoANl1TdgU30XrxefbHvxeQKDF/E3bkxCzX8/5rtUxHiaSXB491G8RADrSZ05nUBc8+ove81dUJTr1aPxA= Received: by 10.64.156.1 with SMTP id d1mr2145441qbe.1163113964614; Thu, 09 Nov 2006 15:12:44 -0800 (PST) Received: from ?192.168.1.6? ( [74.108.69.82]) by mx.google.com with ESMTP id q14sm1454392qbq.2006.11.09.15.12.43; Thu, 09 Nov 2006 15:12:44 -0800 (PST) In-Reply-To: <7c3b2950611091321y649266abs4f3a5bac7187e889@mail.gmail.com> References: <7c3b2950611091321y649266abs4f3a5bac7187e889@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Thu, 9 Nov 2006 18:12:34 -0500 To: Dmitry Shirokov X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Feature request From: ilia@prohost.org (Ilia Alshanetsky) While I came across instance where such a feature would be useful, I think it is a bit too Perlish for me. -0. On 9-Nov-06, at 4:21 PM, Dmitry Shirokov wrote: > Hey guys. > > What are you thinking about adding this feature: > > function foo() > { > return array(1,2,3,4,5,6); > } > > echo foo()[4]; // <---- it that > // or may be (foo())[4] ? > > > // instead of > $var = foo(); > echo $var[4]; > ?> > > -- > Thanks, Dmitry Ilia Alshanetsky