Re: Return type hints
| From: | Chris Stockton | Date: | Mon, 14 Apr 2008 03:06:31 +0000 |
| Subject: | Re: Return type hints | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36994@lists.php.net to get a copy of this message | ||
Why on earth would you have int, string, resource, etc "return type hints"
and then turn around and suggest for parameter hinting just add a scalar
type? That makes no sense and is so inconsistent.
static int function retarded(scalar $value) {
return (int) $value; // lol....
}