Re: [RFC] Type hints (parameter and return value)
| From: | Jarismar Chaves da Silva | Date: | Thu, 17 Apr 2008 23:17:25 +0000 |
| Subject: | Re: [RFC] Type hints (parameter and return value) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37121@lists.php.net to get a copy of this message | ||
+1
Derick Rethans wrote:
On Thu, 17 Apr 2008, Felipe Pena wrote:Now with both parameter and return value type hints. For parameter type hints, i have completed the actual implementation with the leftover php types: - string (binary string and unicode) - integer (accepting numeric string too) - double (accepting numeric string too) - boolean ('0', '1', true, false)I think that the typehints should be strict, if you don't want strictness, don't use type hints. regards, Derick -- *Jarismar Chaves da Silva, M.Sc.* *ADP**Labs** Brazil * jarismar_silva@adplabs.com.br <mailto:jarismar_silva@adplabs.com.br> http://www.adp.com