Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91450 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26065 invoked from network); 28 Feb 2016 09:50:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2016 09:50:06 -0000 Authentication-Results: pb1.pair.com header.from=james@asgrim.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=james@asgrim.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain asgrim.com designates 109.74.205.7 as permitted sender) X-PHP-List-Original-Sender: james@asgrim.com X-Host-Fingerprint: 109.74.205.7 thor.asgrim.com Received: from [109.74.205.7] ([109.74.205.7:43498] helo=thor.asgrim.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/FD-55238-BC2C2D65 for ; Sun, 28 Feb 2016 04:50:05 -0500 Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (Authenticated sender: james.asgrim) by thor.asgrim.com (Postfix) with ESMTPSA id 75400AA4F6 for ; Sun, 28 Feb 2016 09:50:00 +0000 (GMT) Received: by mail-lf0-f49.google.com with SMTP id l83so28194973lfd.3 for ; Sun, 28 Feb 2016 01:50:00 -0800 (PST) X-Gm-Message-State: AD7BkJJaj2ngxQjXwJturUfxXoRA9uFq7diyFgyM5u//WKQbp34tiYV5eWAs1rLnQp5VdkP48F+Sx5oHNyFwyQ== MIME-Version: 1.0 X-Received: by 10.25.27.21 with SMTP id b21mr2704462lfb.99.1456652999944; Sun, 28 Feb 2016 01:49:59 -0800 (PST) Reply-To: james@asgrim.com Received: by 10.25.196.142 with HTTP; Sun, 28 Feb 2016 01:49:59 -0800 (PST) Received: by 10.25.196.142 with HTTP; Sun, 28 Feb 2016 01:49:59 -0800 (PST) In-Reply-To: References: <1F.91.55238.41F10D65@pb1.pair.com> Date: Sun, 28 Feb 2016 09:49:59 +0000 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?B?SmFrdWIgS3Viw63EjWVr?= Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a114025d09f7701052cd17463 Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: james@asgrim.com (James Titcumb) --001a114025d09f7701052cd17463 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 28 Feb 2016 06:18, "Jakub Kub=C3=AD=C4=8Dek" wro= te: > > I see a difference in its > _semantics_. While the `public` modifier states anyone can change the > property, `var` is useful for marking internal properties which must > be public, but should not be manipulated by simply anybody If it's public, it will be modified by someone. This isn't an intended semantic meaning of `var`, and simply saying "don't modify this please" is never going to be enough. Make them private, protected or public and make your intent clear, because for anyone unfamiliar with this design will simply translate `var` to mean `public`, and use it as such. --001a114025d09f7701052cd17463--