Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61582 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28053 invoked from network); 20 Jul 2012 22:21:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2012 22:21:11 -0000 Authentication-Results: pb1.pair.com header.from=ajfweb@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajfweb@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: ajfweb@googlemail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:62794] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/1F-18983-6D9D9005 for ; Fri, 20 Jul 2012 18:21:11 -0400 Received: by weyr1 with SMTP id r1so3376797wey.29 for ; Fri, 20 Jul 2012 15:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PyyhCOHztrJDSZaWOLIJqAqckit2xw3WmxCvs94FwKs=; b=TG2OGjcfWLVzA1MnLkHSycaGXqrXxbSJMuub/lKIbeQNjSSnzXlxa8zEQ47lzcsVkr OAISO45khLr5KooVjmjxabDQowPN9Q4VJqMbVK5iQYEyhVzxUfu/CAqBSaTBOd9lgs+q 5YKY/mIpS0iQppb7tpooZP+GqXocR+IaAV/TUYZOTgG0ZeOWEPoEJIdss9JSnX/L6imK XlAia2hZ3i9t8lvU+j83Ns0fyvWJWr46+h3f8TzSQvxDUGGJF8zu0GOoL1qFNQUdKVmU XRfCyH2m1+FUSKobQL4geJ4QKuynMB5YHN3LCPeL91st8bZYt/v855MXDpCmrVfce6Bh JtKA== MIME-Version: 1.0 Received: by 10.216.118.72 with SMTP id k50mr2767626weh.224.1342822867582; Fri, 20 Jul 2012 15:21:07 -0700 (PDT) Received: by 10.216.160.16 with HTTP; Fri, 20 Jul 2012 15:21:07 -0700 (PDT) Received: by 10.216.160.16 with HTTP; Fri, 20 Jul 2012 15:21:07 -0700 (PDT) In-Reply-To: <5009933E.4060003@sugarcrm.com> References: <5009933E.4060003@sugarcrm.com> Date: Fri, 20 Jul 2012 23:21:07 +0100 Message-ID: To: Stas Malyshev Cc: PHP Internals , Laruence Content-Type: multipart/alternative; boundary=e0cb4efa789a04bed004c54a509a Subject: Re: [PHP-DEV] Re: [RFC] foreach_variable supporting T_LIST From: ajfweb@googlemail.com (Andrew Faulds) --e0cb4efa789a04bed004c54a509a Content-Type: text/plain; charset=UTF-8 If I understand this correctly, this is like what Python let's you do with tuples. It's handy for getting vector components, hostnames and port numbers, etc. (I apologise for the Python comparison, it is just the language where I usually encounter this, and it makes heavy use of foreach-style loops and tuples) On Jul 20, 2012 6:20 PM, "Stas Malyshev" wrote: > Hi! > > > since I proposed last year, and seems no argu here. > > > > so maybe we can just step into the voting phase? > > I'd like to know how it works with references. I.e., you can do: > foreach($foo as &$bar) > > What about the list, how would you use that? > > Also, I'm not sure which use case we're solving here - could you give > some examples where this would provide significant benefit? > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --e0cb4efa789a04bed004c54a509a--