Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84959 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21825 invoked from network); 16 Mar 2015 00:17:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 00:17:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.172 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.172 mail-we0-f172.google.com Received: from [74.125.82.172] ([74.125.82.172:35828] helo=mail-we0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/09-06614-A0126055 for ; Sun, 15 Mar 2015 19:17:15 -0500 Received: by webcq43 with SMTP id cq43so27229316web.2 for ; Sun, 15 Mar 2015 17:17:11 -0700 (PDT) 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; bh=sh5E8HUMLz+9X2YITHA33NOJNBxeW028FF1E8OMva2Y=; b=ROwuj2xKuPM/vksKtImOxx8me9EOruQPesoX+lueg52zUvZlq6K7oStUZqx2FLRXmx mqjfj7OrrO3r0zAA/P2/SeOpvTB8PjCfoNFAo4vEZcwgF+Upb8f4J3dtLaiLj5qAsbWF 7W78eCJJCXKaEzd/kq8tG9fDmZsLKUzH+ak1EdJrjBPmJS28JRa71WgwoagyLGfyWTvy FTBPi6FDr8bh0Qy3wHc5G9djp9YQrgTGoIahGX6td1D3C6eWDd55FhHOY9ch6JytPXTg YzfEo2qxXkkdqqIhbObeYg/nKamF76DhOBuKPdfAuG8NuDj4q5OiR78uJbTsP+/L5PV3 GfuQ== X-Received: by 10.180.19.9 with SMTP id a9mr117459948wie.85.1426465031685; Sun, 15 Mar 2015 17:17:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.101.2 with HTTP; Sun, 15 Mar 2015 17:16:51 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Mar 2015 00:16:51 +0000 Message-ID: To: Niklas Keller Cc: PHP Internals Content-Type: multipart/alternative; boundary=bcaec53d5a937f8d6505115cc52b Subject: Re: [PHP-DEV] [RFC][VOTE] In Operator From: ocramius@gmail.com (Marco Pivetta) --bcaec53d5a937f8d6505115cc52b Content-Type: text/plain; charset=UTF-8 Hi Niklas, On 15 March 2015 at 19:31, Niklas Keller wrote: > Morning, > > I just opened the vote for the in operator, you can find the RFC here: > https://wiki.php.net/rfc/in_operator > Vote will be open for two weeks, counting from today. > > Regards, Niklas > I just wanted to clarify on my "no" vote, and the reason for it is that we have perfectly functional internal as well as userland implementations of array/Traversable search operations. Syntactic sugar won't really make things easier when adopting the language, and I don't like this sort of additional cognitive load either. In short, I stand firm on my "if you can implement it in userland, don't implement it in the language" idea. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --bcaec53d5a937f8d6505115cc52b--