Re: Type hinting - Request for Discussion
| From: | Lukas Kahwe Smith | Date: | Fri, 10 Jul 2009 19:43:01 +0000 |
| Subject: | Re: Type hinting - Request for Discussion | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44932@lists.php.net to get a copy of this message | ||
On 10.07.2009, at 19:58, Stanislav Malyshev wrote:
Hi!+1 ... this is one of the key points i tried to make in my RFC. regards, Lukas Kahwe Smith mls@pooteeweet.orgright .. lets not forget the original goal (though it hasnt been perfectly defined) the idea was to move common validation code out of the function body toreduce code, increase readability and enable IDE's to be even smarter. I think while intent is good (avoiding repetitive code) the strict implementation would do exactly the opposite of what should be done - it would move the repeated validation from library code to client code. WHich would negatively influence both readability (in case you do it right) and code robustness (in case you forget to do the necessary checks).