Re: Re: Flexible type hinting
| From: | Kalle Sommer Nielsen | Date: | Thu, 02 Jul 2009 19:26:37 +0000 |
| Subject: | Re: Re: Flexible type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44671@lists.php.net to get a copy of this message | ||
Hi
2009/7/2 Stanislav Malyshev <stas@zend.com>:
> Without saying anything on the merits of having both syntaxes, visually I
> think this looks much nicer, even with the disadvantage of parentheses
> overload.
I agree, using the type cast operators for casting to the type, and
non parentheses for strict checking isnt such a bad idea actually. It
even makes sense without knowing the difference almost ;)
--
regrads,
Kalle Sommer Nielsen
kalle@php.net