Hi Niklas,

On Sun, Mar 15, 2015 at 9:54 AM, Niklas Keller <m...@kelunik.com> wrote:

> I'd like to announce that I'll open the vote for the in operator later
> that day.
> You can find the RFC here: https://wiki.php.net/rfc/in_operator
>
> There was a small change: If the haystack is a string, integers are no
> longer allowed as needle. This change was necessary so it's
> consistently strict for both, array and string haystacks.
>

I would vote "no".

1. PHP is weakly typed (well at least it is currently)
2. "in" operator does not work well enough for weakly typed types
3. We have discussions how PHP should be type aware currently

These are reasons why I would vote "no" for this now.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to