+1 vote for weak typing.

I myself often (but not always) do take care about types, so for me
personally strict typing won't hurt that much. However, I beleive this will
be an overcomplicated aspect to many. As we know, there are tons of
webmasters who dont know any programming language in deep - but need to
write code and use libraries from time to time. And, after all, PHP had
always made things simple, not hard.

And a few more words about libraries. When using PHP-API for the Sphinx
search engine, you often see warnings regarding argument types. That's
because the author had put "assert()"s in every function that check argument
types. You have to settype(), although you know for sure that, say, a
category ID that you get from a database, can be safely converted to int.
While being defensive, this style is at least strange for a php-man.

2010/5/27 Arvids Godjuks <arvids.godj...@gmail.com>

> I have posted a topic on main Russian site for IT. Soon we will have a
> result on what the Russian community thinks on this matter.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
С уважением,
Виктор

Reply via email to