Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97585 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55447 invoked from network); 8 Jan 2017 14:44:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2017 14:44:29 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:36991] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/D7-31343-64052785 for ; Sun, 08 Jan 2017 09:44:23 -0500 Received: by mail-wm0-f44.google.com with SMTP id c206so305204wme.0 for ; Sun, 08 Jan 2017 06:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m5od+s4i/xkZGNIWa1L9TRZnCDNu84FjKIhjerJY0WA=; b=t272ERylW5D6AdvSgRgR19uZkmT+x63hGhz+7msAz1ftJqbYayeyg9U/DJenZdMxoT mOGeeFpJaNXdDxkkX4ty4QHPNU+C385jdBGBzFh+s45gDfnv19f4blaNQR2W9xRQeEIW QvU6mR9AM30g8txTfr6evF7ntVf3mo3WdEPVosjFnGCg7auSbZRnpgAnBD+xGx8gFFEx CuTHkDLpnSZgty+Lv9N/1jgjOs7jWbMTkHlEDacPS69idtLv3CTcxb+fv2slWD9eQPpE 5jSoxRyKfI0rpVmT/hia3Wu43dNWOPhzuFAhgFkewfjkAzOD52EF7po8S6rdLqPz/dSk LA6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m5od+s4i/xkZGNIWa1L9TRZnCDNu84FjKIhjerJY0WA=; b=b/dUZhbnz3sn8/ky80nnKBZcK4kzNGBJVE9PvzH7yGfg7dXxtgibNL48pB8Kmsaz9A MC8BJTjv2fbgsfEU6jiWBi0CrD8aPVkHDcGlb41WkPOIGZePDxyuRVstmNMulhNt9trl fOy4gnvefiTf0BTynhUfj49B1536JGNualB3u1gtdT7zqHdocSci5F4VPseeKjgxFVOI tSG/JOI7VvwANky6AsIk5PGSrVrc5wKI2Jm1a+90H/ML6Z4tTyzTtwtG28ND6k+myaTh 54vw9Wqyjlg+2Yuk3M3igqidr9fFZ/1tpiJdvGZsJKRbmHgxi5WiQS6/qofvBn14r77Y xqoQ== X-Gm-Message-State: AIkVDXKDbP+BPXWqLmI6et+IcGzUDx8oKmIb6jHXUoGNRQHsp2uHWran/spv88tTu/IVP1Q4xaemiejAcJ/ZhA== X-Received: by 10.223.154.132 with SMTP id a4mr9970956wrc.188.1483886659500; Sun, 08 Jan 2017 06:44:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.173.106 with HTTP; Sun, 8 Jan 2017 06:43:58 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Jan 2017 15:43:58 +0100 Message-ID: To: "Colin O'Dell" Cc: PHP Internals Content-Type: multipart/alternative; boundary=f403045f558039ffc405459649d5 Subject: Re: [PHP-DEV] [RFC][VOTE] array_change_keys From: ocramius@gmail.com (Marco Pivetta) --f403045f558039ffc405459649d5 Content-Type: text/plain; charset=UTF-8 Hi Colin, Voting NO for the following reasons: * Can be a userland function/library, unless there are huge performance benefits that justify it being in core * Doesn't work with `iterable` * New warnings. No, please, we want `Throwable`: warnings are terrible * Semantics for merging duplicate keys should be part of the function name, or a parameter (the former being better, having a strict version that fails, and a merging version that overwrites) * I totally forgot that I benchmarked this before :-\ https://github.com/Ocramius/array_change_keys-benchmark Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Sun, Jan 8, 2017 at 3:21 PM, Colin O'Dell wrote: > Greetings all, > > It's been a while since we introduced the array_change_keys RFC > . During the discussion > period > there was a healthy mix of interest and critique. It seems all the major > discussion points were covered, so I'd like to put this RFC to a vote to > determine its fate. > > Therefore, voting is now open on the array_change_keys RFC: > https://wiki.php.net/rfc/array_change_keys Voting will close 2017-01-23 > at > 23:59:59 UTC. > > Mailing list discussion thread: > https://marc.info/?l=php-internals&m=146452769326964&w=2 > > Reddit discussion thread: > https://www.reddit.com/r/PHP/comments/4ll1hg/rfc_array_change_keys/ > > The implementation is also on 3v4l.org should you wish to test it out. > > Regards, > > Colin O'Dell > --f403045f558039ffc405459649d5--