Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75408 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51091 invoked from network); 13 Jul 2014 15:00:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2014 15:00:40 -0000 Authentication-Results: pb1.pair.com header.from=me@rouvenwessling.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=me@rouvenwessling.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rouvenwessling.de designates 5.35.242.46 as permitted sender) X-PHP-List-Original-Sender: me@rouvenwessling.de X-Host-Fingerprint: 5.35.242.46 www.rouvenwessling.de Linux 2.6 Received: from [5.35.242.46] ([5.35.242.46:42570] helo=lvps5-35-242-46.dedicated.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/96-16748-61F92C35 for ; Sun, 13 Jul 2014 11:00:39 -0400 Received: from rouvens-air.localdomain (xdsl-89-0-231-245.netcologne.de [89.0.231.245]) by lvps5-35-242-46.dedicated.hosteurope.de (Postfix) with ESMTPSA id 38BCD69F0517; Sun, 13 Jul 2014 17:00:35 +0200 (CEST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> Date: Sun, 13 Jul 2014 17:00:30 +0200 Content-Transfer-Encoding: quoted-printable Message-ID: References: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> To: Andrea Faulds , PHP internals X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: me@rouvenwessling.de (=?windows-1252?Q?Rouven_We=DFling?=) First of all thanks for this proposal. In general I=92m hugely in favour = of this approach. One thing however seems like a rather bad idea, and that is exposing the = type of resource in this way. Resources are not compatible between each = other, making such a hint not very useable. If people start adding this = hint to their methods it will also make it much harder to change = resources into objects (like it has been done for gmp and I have a pull = request for hash) Best regards Rouven=