Re: Re: RFC Proposal: New assign value operator
| From: | Andrea Faulds | Date: | Wed, 27 Nov 2013 19:07:29 +0000 |
| Subject: | Re: Re: RFC Proposal: New assign value operator | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70446@lists.php.net to get a copy of this message | ||
On 27/11/13 09:36, Tom Oram wrote:
Since writing the original message I've been looking at golang and found that they have a := operation to infer type which is very similar to what I proposed. I'd like to try and start some discussion about this again as I think it would be very useful and really open up the possibility of having objects for primitive types.I'm not sure I understand the utility here. PHP has a dynamic typing system. The utility of := in languages like Go is that it allows you to avoid making a type declaration. But PHP does not have them anyway, so there it isn't useful in that case. -- Andrea Faulds http://ajf.me/