Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56990 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12526 invoked from network); 21 Dec 2011 19:43:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2011 19:43:15 -0000 Authentication-Results: pb1.pair.com header.from=will.fitch@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=will.fitch@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: will.fitch@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qw0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:38828] helo=mail-qw0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/00-12196-2D632FE4 for ; Wed, 21 Dec 2011 14:43:15 -0500 Received: by qadc14 with SMTP id c14so5270189qad.8 for ; Wed, 21 Dec 2011 11:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=aYoyIOyXEMBHZxyIvz5Jr4CTwOf1sYE0BHgnXZZAxWs=; b=p42BSfhtfOtVmHXL/Nked+sZUOHXgM0U1OBHh8usiL2uYsy4n7Ddc9/+P1hGuCx5Wx kq3wprH4ludb7UPVd2VcJ4TuIrnlV4l6d633+JfXrdfNhP+soko3Bht2t2Qi78xtPRkY 5UB8H69mxe4bCMVkdcw90z9usPcBTojxtKBfE= Received: by 10.224.32.16 with SMTP id a16mr9944800qad.85.1324496167623; Wed, 21 Dec 2011 11:36:07 -0800 (PST) Received: from [192.168.1.68] ([68.64.144.221]) by mx.google.com with ESMTPS id hv20sm12293089qab.22.2011.12.21.11.36.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Dec 2011 11:36:06 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: Date: Wed, 21 Dec 2011 14:36:04 -0500 Cc: Nikita Popov , PHP Developers Mailing List Content-Transfer-Encoding: quoted-printable Message-ID: <1936D5C6-07D2-4B01-AC2B-442497AE0C86@gmail.com> References: <2095305E-D4E3-4D7E-8218-32EE99688E0C@GMAIL.COM> <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> To: Pierre Joye X-Mailer: Apple Mail (2.1251.1) Subject: Re: [PHP-DEV] Return Type Hinting for Methods RFC From: will.fitch@gmail.com (Will Fitch) Will add tonight and generate a new patch. =20 On Dec 21, 2011, at 2:33 PM, Pierre Joye wrote: > hi Will, >=20 > 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. >=20 > Cheers, >=20 > On Wed, Dec 21, 2011 at 6:22 PM, Will Fitch = wrote: >> Hi Nikita, >>=20 >> I didn't add that as it's not yet in production. As soon as things = are finalized and 5.4 is GA, I will gladly add the callable type hint. = The change wouldn't be different from parameter type hinting, and can = easily be added. >>=20 >> On Dec 21, 2011, at 12:17 PM, Nikita Popov wrote: >>=20 >>> Hi Will! >>>=20 >>> 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. >>>=20 >>> Nikita >>>=20 >>> On Wed, Dec 21, 2011 at 3:09 AM, Will Fitch = wrote: >>>> Hello All, >>>>=20 >>>> I would like to submit https://wiki.php.net/rfc/returntypehint2 = into discussion. A link to the patch for this is provided and can be = ran against the current HEAD. >>>>=20 >>>> There is an older entry still in existence, but this patch is = syntactically different. The older entry is located at = https://wiki.php.net/rfc/typechecking and is bundled with parameter, = scalars, etc. >>>>=20 >>>> If possible, can someone promote this to the "Under Discussion" = category within https://wiki.php.net/rfc? >>>>=20 >>>> -- Will >>>> -- >>>> PHP Internals - PHP Runtime Development Mailing List >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>>=20 >>=20 >>=20 >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>=20 >=20 >=20 >=20 > --=20 > Pierre >=20 > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org