Re: Re: [RFC Proposal] var keyword deprecation/removal
| From: | Colin O'Dell | Date: | Thu, 18 Feb 2016 23:38:40 +0000 |
| Subject: | Re: Re: [RFC Proposal] var keyword deprecation/removal | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91303@lists.php.net to get a copy of this message | ||
>
> It would have to be done in 8.0, since removing it would constitute a BC
> break.
>
Thanks for clarifying that Tom! Makes sense to me.
> It's worth noting that there were better reasons for deprecating PHP
> 4-style constructors over the simple redundancy argument. Specifically,
> there was confusion as to when a PHP 4-style constructor would actually be
> considered a constructor (see the RFC [1] for examples). With the var
> keyword, there's no ambiguity like this.
>
That's a fair point. I only included that example to highlight the trend
of using the PHP 5 style features over PHP 4. You're right though, there's
no reason "var" might be misconstrued as something else.
> Whilst the language purist in me would like to remove redundant things
> like this, I feel that it's a rather unnecessary BC break to introduce. So
> I'm not entirely decided on this.
>
I'm not 100% convinced on this either. I just thought the idea had enough
merit to warrant a discussion :)
Colin