Re: [RFC] Scalar Type Hints v0.2
| From: | Andrea Faulds | Date: | Mon, 02 Feb 2015 09:05:10 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints v0.2 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81570@lists.php.net to get a copy of this message | ||
Hi Andrey,
> On 2 Feb 2015, at 08:55, Andrey Andreev <narf@devilix.net> wrote:
>
> Hi,
>
>> On Mon, Feb 2, 2015 at 10:41 AM, Andrea Faulds <ajf@ajf.me> wrote:
>> Hi Dmitry,
>>
>>> On 2 Feb 2015, at 07:02, Dmitry Stogov <dmitry@zend.com> wrote:
>>>
>>> As I already told, in my opinion, version 0.1 was the perfect solution that
>>> fit into PHP semantic very well.
>>
>> I don't like the original. Weak types work to a degree, but they don't fulfill
>> the use case of a lot of developers, and consequently the RFC wasn't too popular outside
>> internals.
>
> I still think that caller-controlled "strict mode" doesn't fulfill
> that use case either.
How doesn't it? It doesn't force the model upon your users, sure, but something like that
is never going to get past internals anyway.
--
Andrea Faulds
http://ajf.me/