Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58114 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5153 invoked from network); 27 Feb 2012 03:52:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 03:52:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:47884] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/4B-40985-60EFA4F4 for ; Sun, 26 Feb 2012 22:52:39 -0500 Received: by wgbdq12 with SMTP id dq12so3410089wgb.11 for ; Sun, 26 Feb 2012 19:52:35 -0800 (PST) Received-SPF: pass (google.com: domain of kris.craig@gmail.com designates 10.180.99.100 as permitted sender) client-ip=10.180.99.100; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kris.craig@gmail.com designates 10.180.99.100 as permitted sender) smtp.mail=kris.craig@gmail.com; dkim=pass header.i=kris.craig@gmail.com Received: from mr.google.com ([10.180.99.100]) by 10.180.99.100 with SMTP id ep4mr24010486wib.7.1330314755797 (num_hops = 1); Sun, 26 Feb 2012 19:52:35 -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=PmMsqGud8GXVDxKXHMuR55BIteel8neYww6bJlpsVUk=; b=FBS7Eo6DGGdO5IhqO4PlF7J5CfPc5d8F11mGpFTtkDiaLEtoQ4cHClW/q8O7Z9ke1B A5+sDmseQG1wFg9JfIkv9tToNTEhSmtN8GESqelitxLoQON89dW/XUcrBOcff9LkJ9I1 QZWLwWp5o7YFZUAIuMiTkr0Absduum/QLfJ6s= MIME-Version: 1.0 Received: by 10.180.99.100 with SMTP id ep4mr19141348wib.7.1330314755688; Sun, 26 Feb 2012 19:52:35 -0800 (PST) Received: by 10.223.75.146 with HTTP; Sun, 26 Feb 2012 19:52:35 -0800 (PST) In-Reply-To: References: Date: Sun, 26 Feb 2012 19:52:35 -0800 Message-ID: To: Samuel Deal Cc: John Crenshaw , Arvids Godjuks , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d04428e5c73ca7104b9ea0aab Subject: Re: [PHP-DEV] Scalar type hinting From: kris.craig@gmail.com (Kris Craig) --f46d04428e5c73ca7104b9ea0aab Content-Type: text/plain; charset=ISO-8859-1 I'll try to find some time tonight to create that for ya. Once this discussion comes together a little bit more and we have at least a vague-ish idea what direction we're moving in, I'll also go ahead and create an RFC as well so we have a conceptual product to build on. --Kris On Sun, Feb 26, 2012 at 6:27 PM, Samuel Deal wrote: > Hi, > > I create a new thread to discuss about Scalar type hinting. > > Following the John Crenshaw proposed terminology: > > - "Strict Typing" means the super strict old C style typing that has > been proven to be ridiculous in this environment because of the obvious > problems inherent in the fact that almost every input is a string. > > - "Weak Typing" means types in the same sense that the PHP documentation > uses types (for example, the docs indicate substr(string, integer), and > substr(12345, "2") == "345".) > > - "No Scalar Typing" should be used to indicate the current system > (where there is no provision for hinting at scalar types.) > > Previous weak typing proposal could be found here : > https://wiki.php.net/rfc/typechecking > > I have no rights to edit the wiki and make a summary of previous > arguments, so if someone could create it... > > > -- > Samuel DEAL > samuel.deal@gmail.com > > --f46d04428e5c73ca7104b9ea0aab--