Re: Re: New wiki account
| From: | Alexander Moskaliov | Date: | Sat, 12 May 2012 04:22:43 +0000 |
| Subject: | Re: Re: New wiki account | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60536@lists.php.net to get a copy of this message | ||
2012/5/12 Dmitri Ravazin <ravazin@gmail.com>
> Yes... That's just what I had in the RFC.
Not at all. In RFC you use first expression in "for ... else" statement as
condition for "else" statement.
if (some_very_expensive_and_ugly_looking_calculation($array) < 0) {
}
I think it correct to use the second expression before the start of
looping, as I described in previous mail.
2012/5/12 Kris Craig <kris.craig@gmail.com>
> Yep. And at least for my part, I have no idea what RFC you guys are
> talking about lol. ;P
Sorry, RFC link was in old thread: https://wiki.php.net/rfc/loop_else
With regards, Alexander Moskaliov
Irker@irker.net