Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32499 invoked from network); 8 Feb 2016 09:09:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2016 09:09:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.176 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.176 mail-yw0-f176.google.com Received: from [209.85.161.176] ([209.85.161.176:34719] helo=mail-yw0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/31-22194-35B58B65 for ; Mon, 08 Feb 2016 04:09:40 -0500 Received: by mail-yw0-f176.google.com with SMTP id h129so97582146ywb.1 for ; Mon, 08 Feb 2016 01:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=MUMDpq9KfPpTQAnPGe6PnNF7Nolrf7a/oUxsi/PZQXM=; b=cVH71xOCVrNpJSbzTRPczSXL6sM1KIX4622NGCgIsI+DN8goZm+TZmEhX9O5IIpWRD jYr/tr6RWHVjn/o9XuzKzQ1VCFy1GBFiK20+j+OrWoBbE9MfaaAVlwdw+vY+37z5mYaY jRRCbQ8IdmvJ0V73w5JT5UtXU8cyRx1K3h5rnJYuSdgDs3i5cGnveqw98j5Poxd6DB/h 1N0kCCXelmAsD6chkZCsk5vgh3qtZR7Twl4FRMgWosHAvo7i8EO/YwGHLRjUFKIAPDQT 2oqtLRT2O80vKEyGq0r/HJps/r51ZDfsjpOb/Xs5ntqGFzkWp1qD5uKhA1yx9deaDIGw y4Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=MUMDpq9KfPpTQAnPGe6PnNF7Nolrf7a/oUxsi/PZQXM=; b=LwZaD42L378udWZS2Lumc0ygXC1uV+bucGtlgW+qsPhCR9TUzEXjkTOtklek08J286 Z8J53564YR2vgDlUQ4Y3aBbm75T07NlGzlrZFkxN/w2DbGjIoyakLA075H8w8dkvdzvb QwZO0ifs5u44ORAZlas2jK/KBfSWutTmKLKGBzYhnHL5kZ5Od5Q5O1S5vWuBLqNwTFre WV27Qleev/LE7MUC/PzQWumF+DVIXma+1fKfR51LeRnNUw7mEgkeXTJG9D3cVF0Q06TZ e0gkj/U9sk/BihG3erXdqUQKecZ29LLyVsgPa9yYgv28kHdYFDh/kbz4zjDgyriVr97q nmMQ== X-Gm-Message-State: AG10YOQ76Kljlw5z1nV0gSqEpDpDkeCeBcJEm28RTvYtxHB2FeVVozkkTxB6HSN8dYff3BoeJOxNX04ClAXJDA== X-Received: by 10.13.226.149 with SMTP id l143mr3884597ywe.0.1454922577194; Mon, 08 Feb 2016 01:09:37 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.109.22 with HTTP; Mon, 8 Feb 2016 01:08:57 -0800 (PST) In-Reply-To: References: <38.31.07203.2EB94B65@pb1.pair.com> Date: Mon, 8 Feb 2016 18:08:57 +0900 X-Google-Sender-Auth: iBlH09RcAQiOyVKylIAC-S66-5g Message-ID: To: Pierre Joye Cc: Andrea Faulds , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][VOTE] Allow specifying keys in list() From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi, On Mon, Feb 8, 2016 at 3:34 PM, Pierre Joye wrote: > On Fri, Feb 5, 2016 at 7:55 PM, 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! > > I voted yes as I like some use cases and the obvious syntax. Same here. It's simply pain to use numeric indexes. There are good use cases other than named parameter like usage. This syntax decreases likelihood that wrong values are assigned to variables by list(), which is good for code reliability/security. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net