Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91311 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39224 invoked from network); 19 Feb 2016 01:03:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2016 01:03:01 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.178 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.178 mail-qk0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:34472] helo=mail-qk0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/99-27267-3C966C65 for ; Thu, 18 Feb 2016 20:02:59 -0500 Received: by mail-qk0-f178.google.com with SMTP id x1so25658411qkc.1 for ; Thu, 18 Feb 2016 17:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=BcbtTG17bVRbRYMh4wohOi9pn0Y9fdzW/ywzN219+qE=; b=TsfjExX59MHIn89MkwbthDfkdWv5MKtR+Qq8j+32zZRemLY6/3/Ol1zbDFyhOUrgjm CwV5z9H4iq69pGR43TjXW6x0Y96Uq58saegwDSH6kaYLWBz2VIrK5/PlV+W8oH+FYQZV viDkcI2Dfq0AJrfeYvO8T6TsIP/hJAU7bMxuNAwHm47RCgWzihSAVFGYK/qPT1CAkag8 suIg3CwZxUAb7Xb0DyAjhIoZhDzFQpXHia/tQ6xs0/rDElfnRm3dHZLX3cFF/YFR5S3x unlqEM1iq5rgug5zj2jsl74QKBLO4uqLApc/fKmUgYsDUtAmMHinhaT3WBSSdqsRwOh8 bcLg== 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:content-type; bh=BcbtTG17bVRbRYMh4wohOi9pn0Y9fdzW/ywzN219+qE=; b=MzxskSAIg9dtRabzt+kLqKvEZ+rUD71u1lIAwAFMLWHsrUe3LTkFUuISbaRzmh2hPd xzkgsug2jr1RWD1uQ73Pk9UPvWAvpLPRcQ24CoTjs4WrRuKMln2lXbJQy4LeALw+1GkA PyCfjHI+k4rYMT5NOu0aifs4f6UQuYSkgZYi+G8jx/qiQuLMH7ndx+jQ9VabJdyfr0N3 RR0QU2HGvqHfPx4JOesSRnW5Smhgsv7FvdPDw32EBiVVG0Z9YTl3Bqj/TswmCrj07RJU qeu29YeXNguyy8xsI5Ip+FiPVRP8pBuPekTSSaRJNFQjsI43wtprti12E1wOPBcvibiB mxeQ== X-Gm-Message-State: AG10YOSICQDGgaEFyMjkEIVCwQ2aQHWgbIwWyeN8y/OqdxcUH0Exncn/RtQcWFgODtnB1WPJpKFTVV18pDEYrQ== MIME-Version: 1.0 X-Received: by 10.55.80.136 with SMTP id e130mr10263028qkb.28.1455843776589; Thu, 18 Feb 2016 17:02:56 -0800 (PST) Received: by 10.55.189.2 with HTTP; Thu, 18 Feb 2016 17:02:56 -0800 (PST) Received: by 10.55.189.2 with HTTP; Thu, 18 Feb 2016 17:02:56 -0800 (PST) In-Reply-To: <56C63A7D.4000005@fleshgrinder.com> References: <56C63852.3060803@gmail.com> <56C63A7D.4000005@fleshgrinder.com> Date: Thu, 18 Feb 2016 17:02:56 -0800 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a114a81c226f5cf052c150b2c Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: smalyshev@gmail.com (Stas Malyshev) --001a114a81c226f5cf052c150b2c Content-Type: text/plain; charset=UTF-8 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, -- Stas Malyshev smalyshev@gmail.com --001a114a81c226f5cf052c150b2c--