Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70952 invoked from network); 28 Feb 2012 21:52:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 21:52:44 -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:13704] helo=mxout.myoutlookonline.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/17-36673-AAC4D4F4 for ; Tue, 28 Feb 2012 16:52:43 -0500 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 99803555A2C; Tue, 28 Feb 2012 16:52:39 -0500 (EST) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB012.mail.lan (unknown [10.110.2.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 4F371555769; Tue, 28 Feb 2012 16:52:38 -0500 (EST) Received: from MAILR001.mail.lan ([10.110.18.27]) by HUB012.mail.lan ([10.110.17.12]) with mapi; Tue, 28 Feb 2012 16:52:36 -0500 To: Kris Craig , Richard Lynch CC: "internals@lists.php.net" Date: Tue, 28 Feb 2012 16:52:32 -0500 Thread-Topic: [PHP-DEV] Scalar type hinting Thread-Index: Acz2YoyJa0rNoGwrRKeWf+pLtSZ1CwAAJmrA Message-ID: References: <1330357150.2159.30.camel@guybrush> <693e15008681dfe7372eaea66214f8a8.squirrel@www.l-i-e.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) No, In the example given there's an error on int $a =3D "1". There should b= e no error because this juggles fine. John Crenshaw Priacta, inc. -----Original Message----- From: Kris Craig [mailto:kris.craig@gmail.com]=20 Sent: Tuesday, February 28, 2012 4:47 PM To: Richard Lynch Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Scalar type hinting @Richard That's fairly close to what I'm thinking, yes. But there seems to= be a diverse range of ideas bouncing around right now, so at present it's = all in flux. --Kris On Tue, Feb 28, 2012 at 1:44 PM, Richard Lynch wrote: > On Mon, February 27, 2012 4:34 pm, Kris Craig wrote: > > I think this is the main reason for differentiating between "strong" > > (or > > whatever word is appropriate) and "weak." The developer may very=20 > > well want their script to blow-up in such a case. > > I believe I actually "get it" now... > > You want 3 layers: > > $a =3D "1"; //current kosher unchanged > weak int $a =3D "1"; // some E_x error level strong int $a =3D "1"; //=20 > some E_y error level where E_y > E_x > > Is that a correct summation? > > -- > brain cancer update: > http://richardlynch.blogspot.com/search/label/brain%20tumor > Donate: > > https://www.paypal.com/cgi-bin/webscr?cmd=3D_s-xclick&hosted_button_id=3D= F > S9NLTNEEKWBE > > > > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe,=20 > visit: http://www.php.net/unsub.php > >