Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80620 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48326 invoked from network); 16 Jan 2015 07:53:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2015 07:53:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=simon@welsh.co.nz; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=simon@welsh.co.nz; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain welsh.co.nz does not designate 103.6.213.4 as permitted sender) X-PHP-List-Original-Sender: simon@welsh.co.nz X-Host-Fingerprint: 103.6.213.4 simon.geek.nz Received: from [103.6.213.4] ([103.6.213.4:45674] helo=simon.geek.nz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/91-39838-863C8B45 for ; Fri, 16 Jan 2015 02:53:14 -0500 Received: from [10.1.1.5] (unknown [180.200.154.226]) by simon.geek.nz (Postfix) with ESMTPSA id 743AC60506; Fri, 16 Jan 2015 20:53:08 +1300 (NZDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Fri, 16 Jan 2015 18:53:05 +1100 Cc: Levi Morrison , internals Content-Transfer-Encoding: quoted-printable Message-ID: <1CD8C39C-8830-4F95-812D-34DA83A7782F@welsh.co.nz> References: To: Yasuo Ohgaki X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: simon@welsh.co.nz (Simon J Welsh) > On 16/01/2015, at 18:46, Yasuo Ohgaki wrote: >=20 > Hi Levi, >=20 > On Wed, Jan 14, 2015 at 6:18 PM, Levi Morrison wrote: >=20 >> [1]: https://wiki.php.net/rfc/return_types#vote >>=20 >=20 > I read the RFC quickly and could not find closure syntax example. >=20 > function():array use ($var) {} >=20 > or >=20 > function() use ($var): array {} >=20 > which one will be the syntax? I suppose first one will be the syntax, > though. >=20 > Regards, >=20 > -- > Yasuo Ohgaki > yohgaki@ohgaki.net The tests have it after the use(): = https://github.com/php/php-src/pull/997/files#diff-e306c6e99612ba59b00a4fe= 435b287e5R9 This was discussed in depth a couple of times in the related threads. --- Simon Welsh Admin of http://91carriage.com/ =E2=80=93 Specialised SilverStripe = hosting