Scalar type hinting
| From: | Samuel Deal | Date: | Mon, 27 Feb 2012 02:27:55 +0000 |
| Subject: | Scalar type hinting | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-58111@lists.php.net to get a copy of this message | ||
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