Hi, > On 5 Feb 2015, at 06:52, Dmitry Stogov <dmi...@zend.com> wrote: > > I completely agree. > Strict typing doesn't fit into PHP. It was already told thousand times.
Seems to work rather well in practice, so long as it’s optional. > Also, the only really useful case for "strict typing" is the ability to catch > mistakes in user apps. > However, this ability is really limited. Implementing "Design by Contact" > approach may be much smarter. It’s not that limited. I caught two different bugs in my app simply by adding strict types. Strict typing, crucially, allows the catching of errors ahead of time, too. You can’t do that with weak typing, because it depends on the value, not the type. And you don’t know the value from reading the source code. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php