Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Zeev Suraski | Date: | Fri, 25 Jul 2014 19:57:17 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76139@lists.php.net to get a copy of this message | ||
> On 25 ביול 2014, at 22:41, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
>
> Hi!
>
>> The point of this RFC is to strike a compromise that is generally
>> useful rather than helping one specific use case (strict hints) or
>> another (casts).
>
> What you call "compromise" is the inconsistency - it's not strict
> typing, it's not weak typing, it's half that and half this without any
> apparent principle uniting them but arbitrarily constructed table, to
> which anybody using it would have to constantly refer to figure out why
> their code is breaking.
Well put.
Zeev