Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84827 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88620 invoked from network); 15 Mar 2015 14:18:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 14:18:57 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.213.47 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.213.47 mail-yh0-f47.google.com Received: from [209.85.213.47] ([209.85.213.47:33934] helo=mail-yh0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/B9-29489-FC495055 for ; Sun, 15 Mar 2015 09:18:56 -0500 Received: by yhch68 with SMTP id h68so9777048yhc.1 for ; Sun, 15 Mar 2015 07:18:52 -0700 (PDT) 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:date :message-id:subject:from:to:cc:content-type; bh=sVn2utw0tZOShlLKkzMaiSAD4pxS995p7KZAiEkyEMU=; b=iPYgt23bXNBiEDP5NJMaY6M5RbWCftXPUygDK3RumJFiuu5wMl4urQz/MheWsjCbif RW5Cpw99HbV684pQ26MzoBiwUvEyj+JfqYSd0BBgCZ1kWhr/r+4aXC31sHCRSNNvOB40 25fJeAfwgKv0cnYPtVHmayAIy4EadnRasYt9cv9oJqVmFLRkVTrXlQ10/jsf9exofAhL PFOj6jvvdz+wWWOm/J5zTG3MA41pUsldWJEd9xs+HLRh9kq3kNvxo9GsCablF9ZLDhqG AxYhOPxhCRbSAUWVwUlAOptwXm515KZs7Gk3UOmmjvuZMUtfU999bwRw4TynoHXCn5tL yu5A== X-Gm-Message-State: ALoCoQmSOFrd1Cv8DY6IeVwkE3MPgh2lEZF2XO1KJ0OUi/JQ9YXp/XSqqdFAmoknEpM50RkoHsHx MIME-Version: 1.0 X-Received: by 10.170.100.87 with SMTP id r84mr63900226yka.73.1426429132265; Sun, 15 Mar 2015 07:18:52 -0700 (PDT) Received: by 10.170.71.86 with HTTP; Sun, 15 Mar 2015 07:18:52 -0700 (PDT) X-Originating-IP: [78.147.4.32] In-Reply-To: References: Date: Sun, 15 Mar 2015 14:18:52 +0000 Message-ID: To: Niklas Keller Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][PRE-VOTE] In Operator From: danack@basereality.com (Dan Ackroyd) On 15 March 2015 at 00:54, Niklas Keller wrote: > Morning, > > 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 We've discussed this elsewhere and the RFC is still lacking one thing - any justification of why this deserves being a new piece of syntax, rather than just being a function implemented either internally, or even better in userland PHP. I think that adding new syntax for something that could just be a function is not a good idea at the best of times, but when it's such generic keyword that could be far more useful in other places (e.g. Linq style queries) it really needs to have a strong justification. The equation is not just "will PHP be better with this" instead it's "will PHP so much better that it justifies the known cost of adding syntax to the language, as well as the unknown cost of blocking future use of the 'in' keyword". I'm sorry, but I just can't see that the value in adding this comes anywhere close to justifying it's addition. cheers Dan