Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58284 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67084 invoked from network); 28 Feb 2012 21:46:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 21:46:39 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:55656] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/36-36673-E3B4D4F4 for ; Tue, 28 Feb 2012 16:46:39 -0500 Received: by vbjk13 with SMTP id k13so2371800vbj.29 for ; Tue, 28 Feb 2012 13:46:36 -0800 (PST) Received-SPF: pass (google.com: domain of kris.craig@gmail.com designates 10.52.71.166 as permitted sender) client-ip=10.52.71.166; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kris.craig@gmail.com designates 10.52.71.166 as permitted sender) smtp.mail=kris.craig@gmail.com; dkim=pass header.i=kris.craig@gmail.com Received: from mr.google.com ([10.52.71.166]) by 10.52.71.166 with SMTP id w6mr15253446vdu.20.1330465596309 (num_hops = 1); Tue, 28 Feb 2012 13:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mMjpN1HbHkYQRI4eouVTuzjqYJfceH5yXU6BkFLNRWU=; b=VtgnNe/m48Rj2U8VwAI94eclW4JoZWpYeRGUHQ9xh0rBesKiEqDumpQyOFQSKvMLGH cklNiUtkk3Unhm9ea29nR1Pyou0iHGtwRpMqj2OxHg8snzjyqLIdvVLlhVmyxcFv6Z+C Z1K+F+AE2sZ/hSTX1z0fyH8DszwXlvkVc9QMo= MIME-Version: 1.0 Received: by 10.52.71.166 with SMTP id w6mr12649847vdu.20.1330465596026; Tue, 28 Feb 2012 13:46:36 -0800 (PST) Received: by 10.52.91.5 with HTTP; Tue, 28 Feb 2012 13:46:34 -0800 (PST) In-Reply-To: <693e15008681dfe7372eaea66214f8a8.squirrel@www.l-i-e.com> References: <1330357150.2159.30.camel@guybrush> <693e15008681dfe7372eaea66214f8a8.squirrel@www.l-i-e.com> Date: Tue, 28 Feb 2012 13:46:34 -0800 Message-ID: To: Richard Lynch Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf3071ce6c3caf6104ba0d2911 Subject: Re: [PHP-DEV] Scalar type hinting From: kris.craig@gmail.com (Kris Craig) --20cf3071ce6c3caf6104ba0d2911 Content-Type: text/plain; charset=ISO-8859-1 @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 well > > want > > their script to blow-up in such a case. > > I believe I actually "get it" now... > > You want 3 layers: > > $a = "1"; //current kosher unchanged > weak int $a = "1"; // some E_x error level > strong int $a = "1"; // 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=_s-xclick&hosted_button_id=FS9NLTNEEKWBE > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --20cf3071ce6c3caf6104ba0d2911--