Re: Re: Flexible type hinting
| From: | Paul Biggar | Date: | Thu, 02 Jul 2009 14:02:40 +0000 |
| Subject: | Re: Re: Flexible type hinting | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44652@lists.php.net to get a copy of this message | ||
On Thu, Jul 2, 2009 at 1:53 PM, Ilia Alshanetsky<ilia@ilia.ws> wrote:
> 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.
I have described a system that allows "strong type checking", "type
hinting", and "type casting", which I think is all the use cases.
Thanks,
Paul
--
Paul Biggar
paul.biggar@gmail.com