Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10892 invoked from network); 21 Dec 2011 19:33:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2011 19:33:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:39427] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/03-28003-A9432FE4 for ; Wed, 21 Dec 2011 14:33:47 -0500 Received: by yenl6 with SMTP id l6so5203178yen.29 for ; Wed, 21 Dec 2011 11:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=jmp87j9dAp4loLZRxuL8C8BkQrmlBYMFIjkXeV2h5WU=; b=xLBD5WfnUMnRudsXhjDeC3eSB6rGq+gf1WlPRNa7oJCiQSSktG6F9lZ7Dtt/ocW2QE sTQVPvVBOBtWD4u4B4rYaAK5VpDOHEC9Qe2ScQ//PstjiFyO/TMIG2cRuDEa4bpqs3gY NnqVFPrmvBQ3VUOmcXmBqo9lAdqAl1PPk78Ug= MIME-Version: 1.0 Received: by 10.236.73.230 with SMTP id v66mr11564347yhd.61.1324496023974; Wed, 21 Dec 2011 11:33:43 -0800 (PST) Received: by 10.146.204.6 with HTTP; Wed, 21 Dec 2011 11:33:43 -0800 (PST) In-Reply-To: <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> References: <2095305E-D4E3-4D7E-8218-32EE99688E0C@GMAIL.COM> <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> Date: Wed, 21 Dec 2011 20:33:43 +0100 Message-ID: To: Will Fitch Cc: Nikita Popov , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Return Type Hinting for Methods RFC From: pierre.php@gmail.com (Pierre Joye) hi Will, You should add it now, while 5.4 final is not released yet, this feature exists already and should be part of the RFC, to be complete. Cheers, On Wed, Dec 21, 2011 at 6:22 PM, Will Fitch wrote: > Hi Nikita, > > I didn't add that as it's not yet in production. =A0As soon as things are= finalized and 5.4 is GA, I will gladly add the callable type hint. =A0The = change wouldn't be different from parameter type hinting, and can easily be= added. > > On Dec 21, 2011, at 12:17 PM, Nikita Popov wrote: > >> Hi Will! >> >> One random thought I had while reading the RFC is: What about the >> newly introduced callable typehint? Is this missing by intention? I >> could well imagine so (because it's hard to check what scope >> callability should be checked on), but wanted to be sure on that. >> >> Nikita >> >> On Wed, Dec 21, 2011 at 3:09 AM, Will Fitch wrote= : >>> Hello All, >>> >>> I would like to submit https://wiki.php.net/rfc/returntypehint2 into di= scussion. =A0A link to the patch for this is provided and can be ran agains= t the current HEAD. >>> >>> There is an older entry still in existence, but this patch is syntactic= ally different. =A0The older entry is located at https://wiki.php.net/rfc/t= ypechecking and is bundled with parameter, scalars, etc. >>> >>> If possible, can someone promote this to the "Under Discussion" categor= y within https://wiki.php.net/rfc? >>> >>> -- Will >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org