Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80352 invoked from network); 2 Mar 2016 10:10:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2016 10:10:52 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wm0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:37166] helo=mail-wm0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/E3-36499-A2CB6D65 for ; Wed, 02 Mar 2016 05:10:51 -0500 Received: by mail-wm0-f43.google.com with SMTP id p65so70509357wmp.0 for ; Wed, 02 Mar 2016 02:10:50 -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-transfer-encoding; bh=9tBPPj1BBJSdfDvOMdgg5yRc0N7VmlRrVGLF4+F8Hzo=; b=WKexfWOueSdoomxL26tqFTTI/wKf24u4ia0CHYQNp/qBUmFp/L6Ba7krfxY6Te5gUG IIMNrD/A7XcWxyZnp6gn5ZijIPbLKKzDPRqJHoy1qvCrUp6IUSRO8+IdKZZOIFUQcfEV rT/OHUGYRY+AJkKMHO/xeLKsC9kXgoldUWWO4MzqoFX0JJjAk1chWXKlGHClXfx44DdP nnyYCEkgBXkeHeOAIATykDu+WYNOdo7EdoKTXW1xisn7xSwhdQHulN4KS2rrh+ccObCW 9p3mnV32alxIc/uGIZalzCMb41tsnFHxdbjyBYJrziK8nYE90lzBONkpnh/z/8GiFWvN WsXw== 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-transfer-encoding; bh=9tBPPj1BBJSdfDvOMdgg5yRc0N7VmlRrVGLF4+F8Hzo=; b=OMuImnUdjs5cJS63TODtAFbguEwPtdXIRqYn6S9uWYKYsEYWIdC39/d11btMTHX5Xf irNfKBC9GSGLgLPzth5ghNdsC8wV392keNzhJC/AdSqZDegOZSY9H5bjRuAdLOwtN6bu KZ6HApSFvFBmFAd9mYeZ0pJstdTXzXcWWp162SzuF5Lx1CNDda9F0C3imQBoOvSJCYTk k7DjInafVns98H7BeGUak8yDSObclDTDefphNgD8W/r2VJgDIp6PWTmJa59nWtQNl39Q fD78qOWWJ3RJaOwKOJ8C8lrp9chMFOkXDJWvX0Nd0VuO69cCrxsgiYDzFbrFLQZ1bBpQ FmpA== X-Gm-Message-State: AD7BkJJLjfdtFRV0S93g24PI96j+nkYSV6ZpbX+vGiZB2t7sxjQrDeWR7FQNIDrKg9kLHQ== X-Received: by 10.28.213.142 with SMTP id m136mr3905820wmg.24.1456913447358; Wed, 02 Mar 2016 02:10:47 -0800 (PST) Received: from [192.168.0.141] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id t7sm5505094wjf.39.2016.03.02.02.10.46 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Mar 2016 02:10:46 -0800 (PST) To: internals@lists.php.net 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> Message-ID: <56D6BBD0.5010505@gmail.com> Date: Wed, 2 Mar 2016 10:09:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <40.73.36499.548B6D65@pb1.pair.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: rowan.collins@gmail.com (Rowan Collins) Tony Marston wrote on 02/03/2016 09:53: > wrote in message news:56D5DDA6.4080607@fleshgrinder.com... >> >> On 3/1/2016 6:34 PM, Rowan Collins wrote: >>> Rowan Collins wrote on 01/03/2016 11:33: >>>> >>>> Secondly, violating visibility may have repercussions outside actual >>>> errors. >>> >>> >>> Incidentally, PHP itself encountered this a few years ago, where a >>> release of libxml2 changed internal behaviour that was being relied on >>> for a hack. The result was that entities like > started silently >>> disappearing from everyone's parsed XML if they compiled PHP against >>> the >>> new library. See https://bugs.php.net/bug.php?id=45996 and >>> http://thread.gmane.org/gmane.comp.gnome.lib.xml.general/14610 >>> >>> Regards, >> >> The misuse of "var" as it was explained is reason alone to take action. > > Just because one developer out of millions made a mistake is no reason > to punish those millions. > > If "var" can be abused then "public" can be abused in the same way, so > surely the only way to avoid the possibility of ANY abuse whatsoever > would be to remove "public" as well as "var". > I think the point was that *the difference between* "var" and "public" was being abused, which wouldn't be possible if there were only one keyword. However, I agree that it's a very weak argument for removal (just as "I [ab]use 'var' to mean something different from 'public'" is a weak argument against removal). Regards, -- Rowan Collins [IMSoP]