Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59090 invoked from network); 14 Sep 2014 20:24:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2014 20:24:21 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:46018] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/B0-55139-379F5145 for ; Sun, 14 Sep 2014 16:24:20 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 01E168800E4; Sun, 14 Sep 2014 16:24:17 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mCeVZVgOpwB8; Sun, 14 Sep 2014 16:24:16 -0400 (EDT) Received: from oa-res-27-90.wireless.abdn.ac.uk (oa-res-27-90.wireless.abdn.ac.uk [137.50.27.90]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id CCBCE8800E2; Sun, 14 Sep 2014 16:24:14 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Sun, 14 Sep 2014 21:24:11 +0100 Cc: Zeev Suraski , Stas Malyshev , PHP Developers Mailing List Content-Transfer-Encoding: quoted-printable Message-ID: References: <6893A97A-EC4C-4124-B804-96E2A26B953F@ajf.me> <20140914000718.GB14312@phcomp.co.uk> <3177B936-50C1-4E5D-8687-FD235C72B411@ajf.me> <54153692.7050500@sugarcrm.com> <9CE963B0-E624-4267-BC2A-0F8D1F985DAE@ajf.me> <6f2236e18c61d30b247e1c6bb2de10f1@mail.gmail.com> <807E0A88-3643-4EE0-B96E-B779903CF163@ajf.me> To: Derick Rethans X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast From: ajf@ajf.me (Andrea Faulds) On 14 Sep 2014, at 21:22, Derick Rethans wrote: > But this "compromise" introduces yet another set of casting rules. And=20= > that is why will advocate and vote against this. >=20 > We can either have casting where: >=20 > function bar(int $foo) { } > bar("42"); >=20 > Means the same as: >=20 > function bar($foo) { } > bar((int) "42=94); >=20 Is anyone really advocating for that? I thought people wanted zpp-style = casting. -- Andrea Faulds http://ajf.me/