Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9219 invoked from network); 18 Feb 2016 22:53:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2016 22:53:15 -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.192.171 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.171 mail-pf0-f171.google.com Received: from [209.85.192.171] ([209.85.192.171:36724] helo=mail-pf0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/43-27267-A5B46C65 for ; Thu, 18 Feb 2016 17:53:15 -0500 Received: by mail-pf0-f171.google.com with SMTP id e127so39294220pfe.3 for ; Thu, 18 Feb 2016 14:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=nLfE8yq/MsfUdfGzwZUy3gN0js/aet7yuwwIst4TNn0=; b=ialvKEJuEf5a2YP5neP2v7az7wyQ04SBl+mCEJKL9LkOdwAzdbZSBleHx/xvHTcxoz I/TdYs3FiISKS8D1c9wuNPVY8EgM2W1PbU4UlNDtiv9+4q2JQsEfhewjt4qCUIOf5rCD /A5nIUjyJ0EyiQ0ZPkdUamDeEOzR099QYZviE1fYi7ZQp2PT0uD5LywvVU4yflSt5zBS ZgncOcEnE15AbtW1hAiowax75mm6gPqLLo5CwhfaEJ9LVGC1Ifa7yHFVRIj3gSKYXERJ fse3lk7L7eiLkNWVFk5mZVawM2DOzFR22dyKqoBW61ANLdqzm5L3L6aix0KdMRDMTfAS 2YRw== 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:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=nLfE8yq/MsfUdfGzwZUy3gN0js/aet7yuwwIst4TNn0=; b=a2S/zSEyW+SgNKHbv6RiG+SOzOunNmoydmPAOOMiPacojfYBrzd36jE8lN0y3d1TVL uj1ysdoyn6RaM4pTJELBMZ02fgmCYECC/1JIN4PfF72Kb/z0GNhhcQMXJIAZ4vN0PxG0 hMZTZKCdflR9oeyXYNak94kBwHzu03lkepBvfogS6dC8kcSFsdj7jsjslFR5NTeQK9Ec PRiQJwbz/nFYGc5sGWIGPP8C/u6bNFCChHTQsLvh13F9k2X5vXdz+HsC4LX51Z7dehlk BET2JhTRqSikQL1wY0b7XF5x+ONyHp7Uxex+OLhtbhLCnnQyPgI+xQAC6NU+jvUfaQfG DZmQ== X-Gm-Message-State: AG10YOQjFczG5ISUhYrGA/Cs4mnrGXYIvQx5NqtxQ13YagiiaGKpEZLWQSwfd5gzdwmfLw== X-Received: by 10.98.43.149 with SMTP id r143mr13687401pfr.7.1455835991561; Thu, 18 Feb 2016 14:53:11 -0800 (PST) Received: from Stas-Air.local (tan1.corp.wikimedia.org. [198.73.209.1]) by smtp.gmail.com with ESMTPSA id tn5sm12646548pac.32.2016.02.18.14.53.10 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Feb 2016 14:53:10 -0800 (PST) To: internals@lists.php.net References: <56C63852.3060803@gmail.com> <56C63A7D.4000005@fleshgrinder.com> X-Enigmail-Draft-Status: N1010 Message-ID: <56C64B56.8030708@gmail.com> Date: Thu, 18 Feb 2016 14:53:10 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56C63A7D.4000005@fleshgrinder.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Although it is true that an upgrade from PHP 7 to 8 will involve more > work, it is not true that it does not hurt anyone. This is a well > known problem in design: > > https://www.nngroup.com/articles/reduce-redundancydecrease-duplicated-de > sign-decisions/ This is all generic advice which is nice and well if we would be designing language anew. As it is, we are not - we already have lots of code using var. For code not using var, removing var does not do anything. For code using var, removing var means no upgrade. It is unnecessary breakage for the sake of feeling that we follow the advice somebody put on the website. That feeling is not worth very real work that people would have to do to achieve what they already have now. > - "What is the difference between *implode* and *join*?" Yes, PHP has aliases. Nothing wrong with that, provided you bother to look in the manual once, and then you are enlightened forever. > It confuses users and wastes their time. It only wastes their time if they don't read the manual but instead chat on Stackoverflow :) Which I have nothing against, it's just not the reason to introduce BC breaks because somebody asked a question about it. -- Stas Malyshev smalyshev@gmail.com