Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78622 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88480 invoked from network); 4 Nov 2014 10:24:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2014 10:24:46 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wg0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:58785] helo=mail-wg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/10-20556-D69A8545 for ; Tue, 04 Nov 2014 05:24:46 -0500 Received: by mail-wg0-f43.google.com with SMTP id y10so10156133wgg.30 for ; Tue, 04 Nov 2014 02:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2eylHQbl9ifRCDTGt0s3c45hhumIteqDbWWCWvhU1Ck=; b=udLEFW9v1pMjSmLBTC1XjBWJgs4FxMsK1XdxXg4DaRJwL5T0ch3rz/8zJqmqTNNX7B givKxnq3ScWahgqu/WADS5a3m7xgvV3RZmuU+i6DB+TvmGt7ltFk1kwwrpYTyn6sdPjW VRInZQUuMMcPSkPxmazFVQ0b5FkSkWn/06mBt+5ZSo3iIvxFvsRRMoSvUc3DCfk9iPCJ KaHPl1Og1urMJyTzXlhUuB69bcdnMtyv3jr/oDQhEsi6qXxOarAWeJiMoif3YHrSOFbH k880G2sRuEvmt4Ni6/KNm8/eAlcmu+Ko6qqehXs7uqsw2MX/9koN4cKHDMjtZ57801mc qg9g== MIME-Version: 1.0 X-Received: by 10.180.91.49 with SMTP id cb17mr22545170wib.30.1415096682311; Tue, 04 Nov 2014 02:24:42 -0800 (PST) Received: by 10.216.50.205 with HTTP; Tue, 4 Nov 2014 02:24:42 -0800 (PST) In-Reply-To: <5458937F.9020304@sugarcrm.com> References: <002601cff777$eb923430$c2b69c90$@tutteli.ch> <000601cff80a$972e0250$c58a06f0$@tutteli.ch> <5458937F.9020304@sugarcrm.com> Date: Tue, 4 Nov 2014 10:24:42 +0000 Message-ID: To: Stas Malyshev Cc: Robert Stoll , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: AW: [PHP-DEV] Types on the right or on the left From: leight@gmail.com (Leigh) On 4 November 2014 08:51, Stas Malyshev 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