Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93824 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26012 invoked from network); 5 Jun 2016 20:52:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2016 20:52:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.52 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.52 mail-oi0-f52.google.com Received: from [209.85.218.52] ([209.85.218.52:34782] helo=mail-oi0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/B2-09778-80194575 for ; Sun, 05 Jun 2016 16:52:25 -0400 Received: by mail-oi0-f52.google.com with SMTP id e72so199629289oib.1 for ; Sun, 05 Jun 2016 13:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=W/rZ0uzdOCKZn0owjY07qzF/cUY/clbJgiuO19c/Ewg=; b=kc2vWCw+ZlU9mgnrH/x5VBoOTXlo/9m5KSh8Olap+NkmeKw6Ixm5pLnV7J1sDXZmiF HWcZPZO1LauBeedLd+3aWgO1imcX5t7cZaoUGO98p6loBJdqxt6XB6qm8Vc3Jc8yqlkY umWSbBFuRutJWAQxs3owUHkMNtiwEsllPi4ipa832RFgNvSdwC+rmgjmu/7PkOKKDKtN I5gCu1FUHt3vzoEE9jZoCrx2oPMKhEKDG6ouEDVmJPrHF0wd5SO/TIODDE9TM7bXlLkd sIPExzCIZWSAy+ycDupq7t7M8xr5abtoc0sXZembM5m2n/BkgZy9W3ilBYkay6K6UxDF +fnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=W/rZ0uzdOCKZn0owjY07qzF/cUY/clbJgiuO19c/Ewg=; b=SBwrUrdPFDMRgymEa9aUPni7h9PthmBe+6tppuEH9Z7HcFQcbPh4skf3a22ZOKQ4x8 W0+hhECB6ysv+3Z+VBOxnNLl/7Gx5U12aiBkbeDUxpYGDvCBw1vttqZunJ4J+16gvfBc EdrnI6bXgE8ZUK3FeTWYAWBqezhKq0KRyAWavH/bBINIjyLPfly1DIOmN5Zr36aDYZ8a 5xHyc1nihpQyCCm9i4OzaNlJlHoBtS2/d3BA9z98flMy5OztrZy5DU9L3LV8O8DfCf3K p1DELTjaWaSFGEluQJ1RyQJDozQzqDAp9ZgjxFaYtMAVMWML7GiUPVaVWefVtf6Lp6ST T+2g== X-Gm-Message-State: ALyK8tJD3L9GIJ+XC8Gd7Lm7ZDGqwqk6ZzKFn9jqzL9B6lcLTOOEoJbi56LsanMe8WpWOA== X-Received: by 10.202.187.10 with SMTP id l10mr7040588oif.125.1465159941885; Sun, 05 Jun 2016 13:52:21 -0700 (PDT) Received: from stas-air.attlocal.net (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id n67sm5934011otn.2.2016.06.05.13.52.20 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Jun 2016 13:52:21 -0700 (PDT) To: Rasmus Schultz References: <94009625-535b-d937-21b6-b454f942a82d@gmail.com> Cc: Sara Golemon , PHP internals Message-ID: <07d42252-ed02-d0ab-d0c7-b01b9132f9e3@gmail.com> Date: Sun, 5 Jun 2016 13:52:18 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC DISCUSSION] typeof From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > You can choose your point of view - I choose the point of view where we > replace a broken function with a function that does what developers > would actually *expect*. It's not just a point of view. If it is implemented, it will have consequences for millions of people using PHP. Adding them extra work and having them to deal with all the consequences that follow from that decision. With this ecosystem, each change has a cost. It's not just "I think this way, it's my opinion". That is true for a personal project. PHP is not a personal project, so proposing change to it is not a matter of personal opinion - it is much broader. That is why I am and will continue to argue against changes that have minimal benefit - like this one - because they are not worth the cost of change imposed on the ecosystem. There's no such thing as free change, so it should be worth it. > You know what, all this rhetoric in favor of inconsistency, against a It's not in favor of inconsistency. It is in favor of not creating a mess of having two basic functions doing almost, but not quite the same. The cost of having imperfect, but widely used function is much less than the cost of switching to another function, learning to distinguish them in the code, having transition period with two functions and then trying to eliminate old function from all code that had absolutely no problem with it. And the benefit is mostly vague "consistency". I mean, consistency is important design consideration. But in no way "it makes me sad to see people complain on Reddit about PHP being inconsistent" is worth more than "people having to change tons of code everywhere to accommodate change made so that people won't complain on Reddit". > solution that has already been implemented? That fact that is has been implemented does not mean it should be part of PHP core. You can implement a lot of things, being implementable is a necessary condition, but in no way sufficient. Yes, you take the risk by implementing feature that is not accepted. But it's not an argument for acceptance. -- Stas Malyshev smalyshev@gmail.com