Re: What do we need strict scalar type hints for?

From: Date: Mon, 02 Feb 2015 19:08:52 +0000
Subject: Re: What do we need strict scalar type hints for?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Stas,

> On 2 Feb 2015, at 18:56, Stanislav Malyshev <[email protected]> wrote:
> 
> Hi!
> 
>> Keeping that in mind, the declare statement, as ugly as it may look,
>> could be actually a killer to finally get what both camps want but
>> never (and never will) manage to agree.
> 
> I think having two conceptual frameworks in one language and having to
> deal with (and potentially maintain) code bases with mixed conceptual
> framework is a very bad idea. That would lead to a language
> fragmentation as strict code will become hard to combine with non-strict
> code within one application, and pretty soon people will start asking
> questions like "is this library written in strict-PHP or non-strict-PHP?
> ow, dang, we can't use it because we use the other one…"

I don’t see how. This proposal has been specifically designed to allow strict and non-strict code
to be completely interoperable.

--
Andrea Faulds
http://ajf.me/






Thread (78 messages)

« previous php.internals (#81629) next »