Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51204 invoked from network); 28 Feb 2012 20:22:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 20:22:15 -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.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:36974] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/E2-36673-6773D4F4 for ; Tue, 28 Feb 2012 15:22:14 -0500 Received: by wibhj13 with SMTP id hj13so175132wib.29 for ; Tue, 28 Feb 2012 12:22:11 -0800 (PST) Received-SPF: pass (google.com: domain of kris.craig@gmail.com designates 10.180.80.71 as permitted sender) client-ip=10.180.80.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kris.craig@gmail.com designates 10.180.80.71 as permitted sender) smtp.mail=kris.craig@gmail.com; dkim=pass header.i=kris.craig@gmail.com Received: from mr.google.com ([10.180.80.71]) by 10.180.80.71 with SMTP id p7mr41576222wix.10.1330460531265 (num_hops = 1); Tue, 28 Feb 2012 12:22:11 -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=u6tbNWuNYZQvkbn/CI9nPzbpaWLkV/D7MVkU7vR8pC0=; b=SG0fg/9PJJJybN7aaTrVwdKyljm9pOKqFDohbfji4NoKbqdZu10uBv5J1HzwGL92ZG 3JyJPIRXsGmnqcsLdXHQblARqAj0LPJ5vUactD5JmO+rB5eF7T28UVM81L0iNWl5BRn8 vkErvPntw4sU+Kb+yIF2S7FDOEDcoOxvtIPP0= MIME-Version: 1.0 Received: by 10.180.80.71 with SMTP id p7mr32979452wix.10.1330460531163; Tue, 28 Feb 2012 12:22:11 -0800 (PST) Received: by 10.223.75.146 with HTTP; Tue, 28 Feb 2012 12:22:10 -0800 (PST) In-Reply-To: References: <1330357150.2159.30.camel@guybrush> <4F4C1324.2040905@gmail.com> Date: Tue, 28 Feb 2012 12:22:10 -0800 Message-ID: To: Adam Richardson Cc: John Crenshaw , PHP Development Content-Type: multipart/alternative; boundary=f46d0442887c5902d704ba0bfbdf Subject: Re: [PHP-DEV] Scalar type hinting From: kris.craig@gmail.com (Kris Craig) --f46d0442887c5902d704ba0bfbdf Content-Type: text/plain; charset=ISO-8859-1 +1 what Anthony said. I think it would be prudent, as some have already suggested, for those of us who are interested in this topic to move it to a more discreet location so as to reduce some of the noise all around. I'll take a look at Google docs and see if that will suit our purposes. If anyone else has any ideas on this, please share them! =) --Kris On Tue, Feb 28, 2012 at 12:18 PM, Adam Richardson wrote: > On Tue, Feb 28, 2012 at 2:53 PM, John Crenshaw >wrote: > > > OK everyone, it seems that some people have forgotten or missed the > > original agreement that this thread started with. There is a > communication > > disconnect ("strict typing" means horribly different things to different > > people right now). Please read through and understand the following > > terminology before continuing to post on this thread. We've agreed to the > > following terms: > > > > - "Strict Typing" means the super strict old C style typing *with no > > implicit conversions*. (If you really think this is what you want, you > are > > probably mistaken. Look through prior discussions on this topic. This > fails > > for numerous reasons, including the fact that almost every input to PHP > is > > a string.) > > > > Where is the term "strict typing" coming from? I've not seen this used to > describe any type system (doesn't mean it's not been used, but I'd really > like to see the usage so I can understand the label.) > > > > - "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".) (If you think you want "strict typing", > this > > is probably what you mean.) > > > > Doesn't weak typing mean that the language implicitly converts types for > use according to a set of rules? The opposite of this being strong typing, > which means the language does not perform implicit conversions. > > > > - "No Scalar Typing" should be used to indicate the current system (where > > there is no provision for hinting at scalar types.) > > > > And, curious about the "No Scalar Typing"? > > Sorry for the questions. > > Thanks, > > Adam > > -- > Nephtali: A simple, flexible, fast, and security-focused PHP framework > http://nephtaliproject.com > --f46d0442887c5902d704ba0bfbdf--