Re: What do we need strict scalar type hints for?
| From: | Stanislav Malyshev | Date: | Thu, 05 Feb 2015 00:58:00 +0000 |
| Subject: | Re: What do we need strict scalar type hints for? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81851@lists.php.net to get a copy of this message | ||
Hi!
> Adding another concept, not changing the existing ones. And really,
> it's just simplifying what is already present via is_<typename>()
> runtime checks, making our lives a little bit easier.
There's a very big difference between allowing to check types (and then
do whatever you wish) and having functions throw fatal errors if types
do not match.
--
Stas Malyshev
smalyshev@gmail.com