Re: Re: Flexible type hinting
| From: | Ilia Alshanetsky | Date: | Thu, 02 Jul 2009 14:17:14 +0000 |
| Subject: | Re: Re: Flexible type hinting | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44654@lists.php.net to get a copy of this message | ||
On 2-Jul-09, at 10:02 AM, Paul Biggar wrote:
On Thu, Jul 2, 2009 at 1:53 PM, Ilia Alshanetsky<ilia@ilia.ws> wrote:That's a fair statement I suppose.Paul's proposal is some part does not make sense because it allows weak type hinting, which should not be used if you need type hinting. The whole idea about type hinting is definition of strict interfaces, not loosely based one. That's just my opinion, which admittedly I feel fairly strongly about.No, the idea of type hinting is that you hint to the user about what type the interface expects. You have implemented "strong type checking" instead. I wonder that you cannot see the conflict between the term "type hinting" and "strict interfaces". I would be happier if you renamed your patch "optional strong scalar type checking", which is what it is.