Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91530 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64546 invoked from network); 7 Mar 2016 19:02:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2016 19:02:34 -0000 Authentication-Results: pb1.pair.com header.from=walterp@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=walterp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.49 as permitted sender) X-PHP-List-Original-Sender: walterp@gmail.com X-Host-Fingerprint: 209.85.213.49 mail-vk0-f49.google.com Received: from [209.85.213.49] ([209.85.213.49:33920] helo=mail-vk0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/A0-59133-940DDD65 for ; Mon, 07 Mar 2016 14:02:34 -0500 Received: by mail-vk0-f49.google.com with SMTP id e185so128259016vkb.1 for ; Mon, 07 Mar 2016 11:02:33 -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; bh=+AaYmzvdEFC+iDF8MPzg4J9OMPJqquMDAGUkgPDwjsM=; b=DbpNJI+cDOMR7VAnmrXoCqTE88JRlJZd6UVKRij5bxfUEQNGnG1o5LWkZKOhi/R7Cf B5WbgML/s04WF5f+nkExLPZ8dzIqVa0W2z+DuiYfbpx8kG6Oh07x4ZMukMVluucAuyNc t4a+3iv1zueglG2QBu8bvsqQFeJ34wH4FbTz726dLYBElDdFwYdXG4L9UvSwD6uQa0AK q5M8i87cqWbZR6zPp5AImUJdlMPLiBF05DbPZ/ZDtDJsBFD3GR231pL+AwVRTBjKPsU7 lOqFUeiD/jbHZkGQzlezoG2SO0NMATn1u6VPmNU5kwOndFnLIfLtcwhPL4yLi8FjkUxh d9eQ== 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; bh=+AaYmzvdEFC+iDF8MPzg4J9OMPJqquMDAGUkgPDwjsM=; b=WPjYheJVjXSF2OtDFW/q/LBPugwomXSrBlroAWoK74FPQ9yO2Vb7f5uUBcZTqcI93B Gup+MsL964jdVKYq0TFeTT1RoibjeIDVJ+OUCMpXw8r1wc7tEqeScixEdx5U+Hem/w2B vQ5+PrNTFWdqHmgXUsKGkQZ4JmojegAPMvzPukpq+YNZNL+2Bpf/6hIdC6cT96juNIKn E2+HYclbdUJGLzMm0G5E3PeozEsprQU/nbCb/8uYlxstHCk1sLKWWQaWWElD72Y5FN1p mW03zuiVFtvXVhSfSHvkArHFt8KSayDI/nnZ+pVWDjGs0qSo65ev0Ng7ycYaMRi0AAll 7HIw== X-Gm-Message-State: AD7BkJJ/wXc24f8pFL4CfAR+5XZVzrtyfE2puqWdpsJqnrnLruP9gQQqYYiHEDKHZtW4xTBClCHf/N5DGbRotQ== MIME-Version: 1.0 X-Received: by 10.31.16.40 with SMTP id g40mr15617786vki.97.1457377350715; Mon, 07 Mar 2016 11:02:30 -0800 (PST) Received: by 10.159.40.6 with HTTP; Mon, 7 Mar 2016 11:02:30 -0800 (PST) In-Reply-To: <56dd744b.8157620a.cddfc.74ed@mx.google.com> References: <1F.91.55238.41F10D65@pb1.pair.com> <56D42CD3.6020602@gmail.com> <56D57DF4.8000906@gmail.com> <56D5D2AD.6070805@gmail.com> <56D5DDA6.4080607@fleshgrinder.com> <40.73.36499.548B6D65@pb1.pair.com> <56D6BBD0.5010505@gmail.com> <56D73386.3000903@fleshgrinder.com> <86.68.21983.A2508D65@pb1.pair.com> <56D86C00.6000904@fleshgrinder.com> <56dd744b.8157620a.cddfc.74ed@mx.google.com> Date: Mon, 7 Mar 2016 11:02:30 -0800 Message-ID: To: kelerest123@gmail.com, PHP Internals Content-Type: multipart/alternative; boundary=001a114333324b11c7052d7a1b61 Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: walterp@gmail.com (Walter Parker) --001a114333324b11c7052d7a1b61 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Mar 7, 2016 at 4:27 AM, wrote: > > Change for the sake of change is bad, no argument there. Change for the > > > sake of progress is not and totally normal. > > > > Can you please specify what kind of progress do see in the `var` keyword > removal? I see only a BC break. > > > > > Very best regards, > Kubis Pandian-Fowler > > > > > > > Od: Fleshgrinder > Odoslan=C3=A9: =E2=80=8E=C5=A1tvrtok=E2=80=8E, =E2=80=8E3=E2=80=8E. =E2= =80=8Emarca=E2=80=8E =E2=80=8E2016 =E2=80=8E22=E2=80=8E:=E2=80=8E23 > Komu: internals@lists.php.net > > > > > > On 3/3/2016 10:34 AM, Tony Marston wrote: > > If you want to avoid such confusion over alias names then surely that > > would be an argument against introducing aliases in the first place. In > > this case the short array syntax would never have been introduced as th= e > > (only slightly longer) long array syntax had already existed since day > #1. > > No, that is not what one should conclude from it. Short array syntax was > added by popular demand and hence for a very good reason. The fact that > there are no plans regarding the old syntax and thus keeping the > duplication indefinitely is the actual problem. > > Change for the sake of change is bad, no argument there. Change for the > sake of progress is not and totally normal. > > On 3/3/2016 2:04 PM, Rowan Collins wrote: > > I'm not sure what Lester had in mind, but in many cases legacy code > > which used "var" should actually be updated to mark properties as > > "protected" or "private" instead. Such properties are public only > > because PHP4 had no other visibility, and explicitly marking them all > > "public" simply masks the real job, which is assessing which > > visibility each property should have. > > > > It occurs to me that if I saw "var", I would not think "that should be > > public", but "that needs assessing for visibility". I do the same with > > legacy code where methods are written as "function foo()" rather than > > "public function foo()" - I check whether it should actually be > > public, and also in that case whether it should be static. > > It seems as if this is not the issue for the people who are against > removing the "var" keyword from PHP 8. They simply do not want to change > their scripts at all. The described procedure is truly time consuming > since it involves to check all usages everywhere as well. Simply > changing from "var" or "public" to any other visibility is a brutal chang= e. > > -- > Richard "Fleshgrinder" Fussenegger > It is a disagreement over language design, the Python way vs the Perl way. The Perl way says: There is more than one way to do things The Python way says: There is one correct way to do things. Other methods should be removed. There is a desire among some PHP people to have the language be more like the Python mindset. --=20 The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandei= s --001a114333324b11c7052d7a1b61--