Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84384 invoked from network); 6 Feb 2016 05:26:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2016 05:26:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:34897] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/50-12953-EF385B65 for ; Sat, 06 Feb 2016 00:26:22 -0500 Received: by mail-ob0-f178.google.com with SMTP id xk3so106374125obc.2 for ; Fri, 05 Feb 2016 21:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ClxGdyGfNo7JzjT3tryutLEdEdWnLQY/eOO0G6bIFzI=; b=sYo4hgcRjQldl272ddgbANbsgAdRKKSAx0kDfe4QB9oBi8mTZ9HHo3taoNtHW3us49 7PnVIdQJqUe4fCoeqL3RlXaR/tgMNPSdrVydfgamxCD8IXnK/918VThsuwZ+v2af0ASj HYAqzKmOko3f6h2M3fotJV5HRR34VtP7n+4GieGOvOkhIueKoTPyD846HpZzzKBJZy5l Kgk3RXJvgMfh1JlDVSliplxEXySYD1iiQcxMKDlC3bWbY+entxuXTbPJIb33vJ9bJSAr k/Pc1I3ywm6y16ujIyh6ynSNaihKuEH7AStbNvY0Kjx/5ITQerz1978m2WFoOPvVwCB6 29GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=ClxGdyGfNo7JzjT3tryutLEdEdWnLQY/eOO0G6bIFzI=; b=QXdpezUPO+hHuWDuWf6iVxXZRB2+Ml8t7bGbBQaPh7qEOI7wc4Y1tdKRmuoZFAGZvd TS1Kmotbj82Bn+UmR9tpJuvXupKt2ssvOpN4ux6g3Igoej2qaxsf/tr6WzqEzwApdJWF gZD+Evc57zVP6iu0VJq7TCS7dIybm5Zxo9sE/MWA3UOgaA2ZPK3rbl8uuOY4oNEq1R3l SeqoAQG0RQHAm+uYCt4pe0+xeNCBTlleDwh7/dv9pLE5jXDXF2wUD1jMrAcdq7zoHMwm gD0zNPyuEuKZj5IGFdNb6jm/iTyjp7c7ducXN215xLRqH/581zGMk06gg6N/EttGVBqQ addA== X-Gm-Message-State: AG10YOSrsc+VHpKLnkdbW04gCzcSaFYRZU+k1UNP13WEVUu6u3XK+s7Ial3utTimoTvbFCVWPwCl1BmECkrJLA== X-Received: by 10.60.54.199 with SMTP id l7mr15242496oep.43.1454736379107; Fri, 05 Feb 2016 21:26:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.4.144 with HTTP; Fri, 5 Feb 2016 21:25:59 -0800 (PST) In-Reply-To: References: <38.31.07203.2EB94B65@pb1.pair.com> Date: Sat, 6 Feb 2016 01:25:59 -0400 Message-ID: To: Levi Morrison Cc: Andrea Faulds , internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][VOTE] Allow specifying keys in list() From: marcio.web2@gmail.com (Marcio Almada) Hi, 2016-02-05 23:58 GMT-04:00 Levi Morrison : > On Fri, Feb 5, 2016 at 5:55 AM, Andrea Faulds wrote: >> Hi everyone, >> >> It's been more than two weeks since I first proposed this RFC, and there= 's >> no outstanding issues preventing moving towards a vote. There's not yet = a >> language specification patch, but that can be done later. >> >> So, I'm opening the vote on this RFC today, 2016-02-05, and it'll close = the >> Sunday after next, 2016-02-14. The vote requires a 2/3 majority as it's = a >> language change. >> >> The RFC page is here: https://wiki.php.net/rfc/list_keys >> >> Happy voting! >> -- >> Andrea Faulds >> https://ajf.me/ >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > > I wanted to chime in since I voted no. I'm not strongly opposed to > this behavior but I do have concerns about the key behavior that was > changed. In an example in the RFC: > > list($foo =3D> $bar) =3D $array; > > I don't think this really makes sense. `$foo` is being evaluated and > its value is used to look up the key in `$array`, but `$bar` is being > assigned to even though it's a similar place as `$foo`. > > I don't think I've really expressed well what I am trying to convey > but I think this RFC would be much better *without* this change, so > I've voted no. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > "yes" voter here... I'm not 100% sure if I understand your concern perfectly. Evaluating the key as an expression seems to make sense, specially on examples like: ``` list( CURLOPT_GET =3D> $isGet, CURLOPT_POST =3D> $isPost, CURLOPT_URL =3D> $url ) =3D $curlOptions; ``` Would you mind to elaborate more why do you think this is a problem? :) Thank you, M=C3=A1rcio.