Hi Thomas,
On 16 March 2015 at 20:51, Thomas Punt wrote:
>
>> No, your example would blow up regardless of the caller being in strict mode
>> or weak mode.
>
> That was the point in my hypothetical example - the library can decide
> what mode it wants the user to use (strict or weak) if it wants
> No, your example would blow up regardless of the caller being in strict mode
> or weak mode.
That was the point in my hypothetical example - the library can decide
what mode it wants the user to use (strict or weak) if it wants to.
-Tom
--
PHP Internals -
> On 17 Mar 2015, at 1:33 am, Thomas Punt wrote:
>
> Hey David,
>> A library written in weak or strict mode will have no bearing on its public
>> API.
>
> Strictly speaking (pun intended), this is not true. A library can easily
> expose a
> facade that enforces a user of that library (who is
Hi Thomas,
Am 16.03.2015 um 15:33 schrieb Thomas Punt:
> A library can easily expose a facade that enforces a user of that library
> (who is in weak mode) to have to write in strict mode [1]. Once more,
> this can be done unintentionally [2] because of the
> caller-deciding semantics. These exampl
Hey David,
> A library written in weak or strict mode will have no bearing on its public
> API.
Strictly speaking (pun intended), this is not true. A library can easily expose
a
facade that enforces a user of that library (who is in weak mode) to have to
write
in strict mode [1]. Once more, thi
On 16/03/15 11:54, David Muir wrote:
>>> On 14 Mar 2015, at 6:41 am, Lester Caine wrote:
>>> >>
>>> >> On 13/03/15 18:53, guilhermebla...@gmail.com wrote:
>>> >> By considering PHP's nature, having a dual mode is a WTF. I can see
>>> >> myself
>>> >> asking multiple times a day "is this file str
>> On 14 Mar 2015, at 6:41 am, Lester Caine wrote:
>>
>> On 13/03/15 18:53, guilhermebla...@gmail.com wrote:
>> By considering PHP's nature, having a dual mode is a WTF. I can see myself
>> asking multiple times a day "is this file strict or not?" to trace
>> potential bugs or type juggling. I d
On 13/03/15 18:53, guilhermebla...@gmail.com wrote:
> By considering PHP's nature, having a dual mode is a WTF. I can see myself
> asking multiple times a day "is this file strict or not?" to trace
> potential bugs or type juggling. I do want strict, but I don't think it's
> the right time for PHP