Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23427 invoked from network); 21 Dec 2011 22:28:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2011 22:28:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=will.fitch@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=will.fitch@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: will.fitch@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:36346] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/B0-16235-9AD52FE4 for ; Wed, 21 Dec 2011 17:28:57 -0500 Received: by qcsd16 with SMTP id d16so5020030qcs.29 for ; Wed, 21 Dec 2011 14:28:54 -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=KNpyBcl+PW1AFoj/Mu3GWm0BHF4hsMKxqagiyxHQE0g=; b=qXG6LgT3LcG49gKCFtmWK9b3viPaoMVwpL69vVHISzYzC63es4Qs8a18eG7BO0q8zw zNsHYgK5Kp2MzdbA8muKW7tM97aaq/JCsSBAKA0ypSLsmgg0ruxVK1IwOoB+O2/cjMkF Bt9YO0M++Whdp15lMllEsnI5tBCZmN+mqCxAM= Received: by 10.229.75.144 with SMTP id y16mr3227857qcj.87.1324506534384; Wed, 21 Dec 2011 14:28:54 -0800 (PST) Received: from [192.168.1.68] ([68.64.144.221]) by mx.google.com with ESMTPS id m4sm10997353qan.5.2011.12.21.14.28.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Dec 2011 14:28:53 -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 17:28:51 -0500 Cc: Nikita Popov , PHP Developers Mailing List Content-Transfer-Encoding: quoted-printable Message-ID: <159A7CA2-8561-40DA-9434-CAAE12304DDB@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) Hi Pierre and Nikita, I have added callable to the patch and updated the RFC entry to reflect = the changes. Please verify and let me know if you have any issues. 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