Re: Type hinting
| From: | Pierre Joye | Date: | Wed, 26 May 2010 18:12:33 +0000 |
| Subject: | Re: Type hinting | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48473@lists.php.net to get a copy of this message | ||
hi Zeev,
On Wed, May 26, 2010 at 8:05 PM, Zeev Suraski <zeev@zend.com> wrote:
>> I'd say: the type-juggling is not the *big plus* of PHP. BTW: if I read
>> some "PHP is so enterprise-ready" articles, I never read about the
>> advantages
>> of weak types. (I'd even liked it, if there would be an optional(!)
>> possibility of variable type declaration. Who cares, could use it - others
>> ignore it.)
>
> Thomas,
>
> I think that these statements put you in a small minority amongst PHP's
> millions of users. PHP's type system is one of its key benefits, and while
> there's debate over what kind of type hinting we should implement - I don't
> think there's any meaningful debate regarding PHP's weakly typed nature at
> large.
Short comment about that. As PHP's type system is seen as a big plus,
I have to say that many users consider it as a plus in the
implementation of a given method function or method. But the same
users ask to have something more strict for the methods signature. I
think it is a valid request and somehow makes sense too.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org