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

From: Date: Tue, 04 Nov 2014 17:46:25 +0000
Subject: Re: AW: [PHP-DEV] Types on the right or on the left
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-78653@lists.php.net to get a copy of this message
Hi! >> "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. Sorry, I do not understand - why to grep for "function bar" you'd have to know the type? Just grep for "function bar" as you did before. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

« previous php.internals (#78653) next »