Re: type hinting
| From: | Tomi Kaistila | Date: | Tue, 05 Feb 2008 23:02:06 +0000 |
| Subject: | Re: type hinting | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35205@lists.php.net to get a copy of this message | ||
> No one seems to have answered my point that actually relying on type
> juggling for anything other than string concatenation is asking for a
> problem.
Probably because there isn't a way to answer that point. Anyone who does would
be laughed out of the barn. Like I told Sam just few minutes ago, the fact is
that no matter how wonderful PHP's juggling is, there is still a reason why
we have different data types. If it was all the same we wouldn't need
integer, float, et cetera. But we do have them and we do need them.
The whole objection against this feature was never about the technical merits
of it. It was just simply about some people saying "I don't like it" and thus
concluding that it should not be added.
Tomi Kaistila
PHP Developer