Re: Type hinting - Request for Discussion

From: Date: Fri, 10 Jul 2009 16:15:27 +0000
Subject: Re: Type hinting - Request for Discussion
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-44927@lists.php.net to get a copy of this message
*You* do the above because you know that you should; (hopefully you do other checks as well). One of the things that we are doing is trying to help the naive/lazy programmer who doesn't bother - or thinks that javascript checking is enough :-( What we want to do is to generate an error/warning message that can tell him that something is wrong. Bad programmers write bad code and will continue to do so irrespective of type hinting. Better documentation is the answer to that problem, not magic casting, IMHO.


« previous php.internals (#44927) next »