RE: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Zeev Suraski | Date: | Sun, 13 Jul 2014 15:01:14 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75409@lists.php.net to get a copy of this message | ||
> From my point of view, if the type annotations are doing implicit cast
> (with or
> without E_NOTICE/E_STRICT warning), they should behave exactly the same
> than an explicit cast. If it behaves differently, I'll be really difficult
> for a
> developer to guess what will be the PHP behaviour with this new syntax.
Coming to think of it, this is probably the cleanest and most productive
approach. +1.
Zeev