Re: [RFC] Strict type hints (parameter and return value)
| From: | Timm Friebe | Date: | Sun, 15 Jun 2008 09:44:53 +0000 |
| Subject: | Re: [RFC] Strict type hints (parameter and return value) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38244@lists.php.net to get a copy of this message | ||
Hi,
If anyone wants use type hinting, i believe that it should be strict. Otherwise, it makes more sense to not use it.I like this generally, but cannot live with the BC issues raised. Introducing all type names as keywords will make "class Object", "class Integer" and so on give a syntax error. http://www.google.com/codesearch?q=class+Object+lang%3APHP&hl=en - Timm