On 09 Feb 2015, at 19:24 , guilhermebla...@gmail.com wrote:
> 
> Hi Andrea,
> 
> I totally see your viewpoint. That's why initially I voted "YES", because
> your proposal somehow makes sense.
> My when I thought over and use a weak/strict boolean type conversion on my
> own brain, I came to the conclusion my real wish does not get fully
> addressed with a "YES", leading me to switch my vote.
> I really wanted to expose the motivation of my change here, so everyone is
> aware that I do love strict typing, and I really want this in for PHP, but
> not in this RFC way.


To me this is the best compromise that can be made here.
In case of boolean: if you specify boolean, boolean is what you get, no matter 
what user of your library do.

So you are in full control here!
You are not, however, in control over other peoples code, which you shouldn’t 
be anyway. After all you didn’t write it.

The RFC quite elegantly allows both strict and weak camps to be pleased, 
bikeshedding on declare() aside.
So it is a pity people in those camps don’t see that, as this is rather 
overdue* feature.


Best,
André


* It is a feature that allows us all to write more reliable, shorter, and 
better self documented code.
  We got it for all other types up until now, only scalars missing.

Reply via email to