Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58378 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33256 invoked from network); 1 Mar 2012 01:16:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2012 01:16:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=johncrenshaw@priacta.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=johncrenshaw@priacta.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain priacta.com designates 64.95.72.244 as permitted sender) X-PHP-List-Original-Sender: johncrenshaw@priacta.com X-Host-Fingerprint: 64.95.72.244 mxout.myoutlookonline.com Received: from [64.95.72.244] ([64.95.72.244:42738] helo=mxout.myoutlookonline.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/A1-46815-30ECE4F4 for ; Wed, 29 Feb 2012 20:16:51 -0500 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id DB3015549CD; Wed, 29 Feb 2012 20:16:48 -0500 (EST) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB024.mail.lan (unknown [10.110.2.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 73374554948; Wed, 29 Feb 2012 20:16:48 -0500 (EST) Received: from MAILR001.mail.lan ([10.110.18.27]) by HUB024.mail.lan ([10.110.17.24]) with mapi; Wed, 29 Feb 2012 20:16:40 -0500 To: Kris Craig , Richard Lynch CC: "internals@lists.php.net" Date: Wed, 29 Feb 2012 20:16:44 -0500 Thread-Topic: [PHP-DEV] Scalar type hinting Thread-Index: Acz3Fc6DlUfJmJWYS6yBDW12N6IiNAAKI5Zg Message-ID: References: <693e15008681dfe7372eaea66214f8a8.squirrel@www.l-i-e.com> <4F4D5D44.5090307@developersdesk.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] Scalar type hinting From: johncrenshaw@priacta.com (John Crenshaw) > -----Original Message----- > From: Kris Craig [mailto:kris.craig@gmail.com]=20 > > @Richard I think you made a very good point. Should we treat a float =3D= > int mismatch the same as we would a string =3D> int mismatch, or should t= he former fail more gracefully? I can see good arguments for both. > > --Kris I'm beginning to think that the type hinting question is too closely relate= d to the dirty secrets of type juggling to resolve them separately. You may= have to either discard consistency, or else fix the problem of silent biza= rre conversions at the same time ('foo'=3D=3D0, '123abc'=3D123). Fixing the= conversions is a BC break though. John Crenshaw Priacta, Inc.