> -----Original Message-----
> From: Stas Malyshev [mailto:smalys...@sugarcrm.com]
> Sent: Tuesday, July 15, 2014 7:14 PM
> To: Rowan Collins; internals@lists.php.net
> Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)
>
> Hi!
>
> > The answer - which is definitely a matter of opinion - is that
> > allowing any string reduces the usefulness of the type hint.
>
> IMO, having consistent rules is much more, orders of magnitude more
> important than serving any particular use case. We will always have use
> cases
> in which any particular check would not be enough. We should not sacrifice
> the simplicity of the language to try and capture every one of them.

Agreed.

Zeev

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to