Re: in Operator
| From: | Marcio Almada | Date: | Tue, 20 Jan 2015 14:27:59 +0000 |
| Subject: | Re: in Operator | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80878@lists.php.net to get a copy of this message | ||
Mike,
Back to the subject,:
> It is indeed different but ever so slightly, a for loop in this case cannot handle a single
> argument of true and would cause a parse error.
> Therefore for ("PHP" in ["PHP, "C", "Java"]) could be
> handled differently. Again, my main point is that due to other languages the in
> operator itself also correlates to for ($var in $container), I understand having an additional
> RFC but this is indeed the place for
> discussion of such things.
Agree, but maybe a RFC for "in" operator and a follow up RFC to allow
"in" on "for" context could be a win/win here as long as one feature
doesn't block each other?
2015-01-20 11:10 GMT-03:00 Marcio Almada <marcio.web2@gmail.com>:
> Mike,
>
>> Also FYI - in the future please try not to top post and instead post under where you are
>> commenting as it makes it more difficult for
>> people coming later to the thread to see the scope of the conversation.
>
> Thanks for the tip! I read to "do not top post" on the guidelines but
> had no clue what it meant until now xD