Re: [RFC] Strict type hints (parameter and return value)
| From: | Stanislav Malyshev | Date: | Mon, 21 Apr 2008 01:24:55 +0000 |
| Subject: | Re: [RFC] Strict type hints (parameter and return value) | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37151@lists.php.net to get a copy of this message | ||
Hi!
I may be missing something but in this context, "string" doesn't get very useful (I think), because besides arrays / objects (exceptYes, it's not very useful, I agree. However, if you define "useful" as "being able to reject arguments that can be converted to strings but aren't marked as strings", then your definition of useful is radically different from mine, because I don't think PHP programmer needs to do such things (for my nitpicking friends around here, please add "unless he's using is_string or serializing or using other one or two very special cases not relevant to this discussion anyway" :). 5 marked as "integer" and 5 marked as "string" have no useful distinction outside of the context of C engine programming.
I also think for many people, including me who favor strict types, alsoI imagine how hard it was for you to write in PHP or any other dynamic language... -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com