Re: [RFC Discussion] "var" Deprecation
| From: | James Titcumb | Date: | Fri, 11 Mar 2016 10:23:09 +0000 |
| Subject: | Re: [RFC Discussion] "var" Deprecation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91631@lists.php.net to get a copy of this message | ||
On 11 March 2016 at 10:03, Jakub Kubíček <kelerest123@gmail.com> wrote:
>
> -
var can semantically also represent an internal dependency,
> as I have
> described earlier
An internal property should be private. The use of var in the specific
project you referenced earlier should only be considered a very, very weak
argument for keeping var. If it was a de-facto standard in many
projects/frameworks/libraries, then maybe it would have a stronger case,
but I have never seen var used in this way before - it seems like Nette
has "invented" a new semantic meaning for their use case.