Re: Scalar type hinting
| From: | Kris Craig | Date: | Mon, 27 Feb 2012 03:52:35 +0000 |
| Subject: | Re: Scalar type hinting | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58114@lists.php.net to get a copy of this message | ||
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 <samuel.deal@gmail.com> 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
>
>