Re: AW: [PHP-DEV] Types on the right or on the left

From: Date: Tue, 04 Nov 2014 10:24:42 +0000
Subject: Re: AW: [PHP-DEV] Types on the right or on the left
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-78622@lists.php.net to get a copy of this message
On 4 November 2014 08:51, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > I don't see why > "public Foo function bar()" would be so much worse than "public function > bar() : Foo" Because when you grep for "function bar", in future you'd have to know the return type too. I like to think of it as: function bar(): Type $hiddenTmpVar

« previous php.internals (#78622) next »