Re: Re: [RFC Proposal] var keyword deprecation/removal
| From: | Zeev Suraski | Date: | Thu, 18 Feb 2016 22:59:31 +0000 |
| Subject: | Re: Re: [RFC Proposal] var keyword deprecation/removal | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91297@lists.php.net to get a copy of this message | ||
> On 18 בפבר׳ 2016, at 23:23, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
>
> Hi all,
>
>> On Fri, Feb 19, 2016 at 4:33 AM, Andrea Faulds <ajf@ajf.me> wrote:
>>
>> Colin O'Dell wrote:
>>>
>>> I'd like to propose an RFC to deprecate and eventually remove the "var"
>>> keyword.
>>
>>
>> I don't have a strong opinion on that, I guess I'm in favour. It seems like
>> a fairly harmless deprecation.
>>
>> Though if we do get rid of the var syntax, I'd like it if we kept the
>> reserved word, because it still might be useful in future for typed
>> variables or different variable scoping.
>
> Same opinion.
> Keeping various syntax makes language more complex.
I think it's a drop in the bucket compare to new features we're adding plenty of on every
version. These make the language a lot more complex than var being an alias to public (not even
different syntax).
To me, var falls squarely in the bucket of "no strong reason to remove".
Zeev