Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58111 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99075 invoked from network); 27 Feb 2012 02:27:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 02:27:59 -0000 Authentication-Results: pb1.pair.com header.from=samuel.deal@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=samuel.deal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: samuel.deal@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qw0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:44092] helo=mail-qw0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/2A-40985-E2AEA4F4 for ; Sun, 26 Feb 2012 21:27:58 -0500 Received: by qadc14 with SMTP id c14so1559720qad.8 for ; Sun, 26 Feb 2012 18:27:55 -0800 (PST) Received-SPF: pass (google.com: domain of samuel.deal@gmail.com designates 10.224.101.72 as permitted sender) client-ip=10.224.101.72; Authentication-Results: mr.google.com; spf=pass (google.com: domain of samuel.deal@gmail.com designates 10.224.101.72 as permitted sender) smtp.mail=samuel.deal@gmail.com; dkim=pass header.i=samuel.deal@gmail.com Received: from mr.google.com ([10.224.101.72]) by 10.224.101.72 with SMTP id b8mr9433948qao.31.1330309675496 (num_hops = 1); Sun, 26 Feb 2012 18:27:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=OckCu7mcAPj366rO+Ik+cJyYOZiD5IMOAvAr2zULH00=; b=r0wkm6w2BlzwVvNLob279x2gkq9j7prlsZip0kmfKkhClXJ8P7pI4BMdAq4SABzD8O jo2rf5cj5qlGX3BnYT8olt9OX0sWIzNGqPnPiW/KSe3v+5N+Qm7YCEkiPgnj+He+928j YjbzfFj0yQAwXyUfV8AbdkMWGN2MidM60gaxo= MIME-Version: 1.0 Received: by 10.224.101.72 with SMTP id b8mr7998978qao.31.1330309675440; Sun, 26 Feb 2012 18:27:55 -0800 (PST) Received: by 10.229.220.84 with HTTP; Sun, 26 Feb 2012 18:27:55 -0800 (PST) Date: Mon, 27 Feb 2012 03:27:55 +0100 Message-ID: To: Kris Craig , John Crenshaw , Arvids Godjuks , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf30667c2fa55ba804b9e8db33 Subject: [PHP-DEV] Scalar type hinting From: samuel.deal@gmail.com (Samuel Deal) --20cf30667c2fa55ba804b9e8db33 Content-Type: text/plain; charset=UTF-8 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 --20cf30667c2fa55ba804b9e8db33--