Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70446 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 249 invoked from network); 27 Nov 2013 19:07:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2013 19:07:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.240 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.240 imap2-1.ox.registrar-servers.com Received: from [198.187.29.240] ([198.187.29.240:58304] helo=imap2-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/C6-03032-CF246925 for ; Wed, 27 Nov 2013 14:07:41 -0500 Received: from [192.168.0.13] (unknown [94.13.99.191]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 0C32E5A00BB; Wed, 27 Nov 2013 14:07:33 -0500 (EST) Message-ID: <529642F1.8090506@ajf.me> Date: Wed, 27 Nov 2013 19:07:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Tom Oram , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: RFC Proposal: New assign value operator From: ajf@ajf.me (Andrea Faulds) 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/