Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8437 invoked from network); 15 Mar 2015 02:11:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 02:11:55 -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.214.175 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:33943] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/21-01144-A6AE4055 for ; Sat, 14 Mar 2015 21:11:54 -0500 Received: by obbgg8 with SMTP id gg8so13976330obb.1 for ; Sat, 14 Mar 2015 19:11:51 -0700 (PDT) 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=Nk1v7sHYCgjjcDwUBEa+yzRBK8VOQ6jepuATYG7h2SU=; b=mZQ0z3O6rwfcUbR7+DC2930yHGEYIxcTPs1pnpI10FmHoVN6+UgcPBWaw2nvJ9KPgV XFbezYjCtWPH23KbOe9LDhXFTAhaTHAegVCtbj9yGv/FP3Jda5cI5LEUm9aCkphxOztT 9RvNicB4nnAmg9OCCkUys3u42i5FRLx3wShffCZZJRLUSFKHbXGGfyaU7/55Su9R2XXc GsLZ0KWT3oPIc9T9mgYM7W/IrocbqUBzurGEyrHlXBmib2fHnGdUwEwDUxATV+aqDmtg OmCVG6Swkg6EfYikgsH2t07aQn4Jlw/xaj6zHR3t8R0pMaVRWrzmzWAT1xrKgxhYPWIn JB7w== X-Received: by 10.182.81.98 with SMTP id z2mr43478678obx.35.1426385511233; Sat, 14 Mar 2015 19:11:51 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.58.2 with HTTP; Sat, 14 Mar 2015 19:11:10 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Mar 2015 11:11:10 +0900 X-Google-Sender-Auth: mqI2GtokJxFJuVuPrEU3qWQVYlg Message-ID: To: Niklas Keller Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b2e4858b5bf5205114a416a Subject: Re: [PHP-DEV] [RFC][PRE-VOTE] In Operator From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b2e4858b5bf5205114a416a Content-Type: text/plain; charset=UTF-8 Hi Niklas, On Sun, Mar 15, 2015 at 9:54 AM, Niklas Keller wrote: > I'd like to announce that I'll open the vote for the in operator later > that day. > You can find the RFC here: https://wiki.php.net/rfc/in_operator > > There was a small change: If the haystack is a string, integers are no > longer allowed as needle. This change was necessary so it's > consistently strict for both, array and string haystacks. > I would vote "no". 1. PHP is weakly typed (well at least it is currently) 2. "in" operator does not work well enough for weakly typed types 3. We have discussions how PHP should be type aware currently These are reasons why I would vote "no" for this now. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7b2e4858b5bf5205114a416a--