Re: [PHP-DEV] Re: [PHP-WEBMASTER] New wiki account

2012-05-12 Thread Dmitri Ravazin
On Sat, May 12, 2012 at 12:22 AM, Alexander Moskaliov wrote: > 2012/5/12 Dmitri Ravazin  >> >> 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_

Re: [PHP-DEV] Re: [PHP-WEBMASTER] New wiki account

2012-05-11 Thread Alexander Moskaliov
2012/5/12 Dmitri Ravazin > 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 express

Re: [PHP-DEV] Re: [PHP-WEBMASTER] New wiki account

2012-05-11 Thread Kris Craig
> > > Hey, I noticed you CC'ed internals, does that mean everyone on the > list is getting this? > Sorry, not entirely familiar with how these mailing lists work. > Yep. And at least for my part, I have no idea what RFC you guys are talking about lol. ;P --Kris

[PHP-DEV] Re: [PHP-WEBMASTER] New wiki account

2012-05-11 Thread Dmitri Ravazin
On Fri, May 11, 2012 at 2:33 AM, Alexander Moskaliov wrote: > > I think the main idea of this RFC: Run the code, if we had never entered > in loop. > In this case more sence to change "for .. else" condition to this: > If second expression  is equal FALSE before looping(but after run first > expre

Re: [PHP-DEV] Re: [PHP-WEBMASTER] New wiki account

2012-05-11 Thread Nikita Popov
On Fri, May 11, 2012 at 8:33 AM, Alexander Moskaliov wrote: > I think the main idea of this RFC: Run the code, if we had never entered > in loop. > In this case more sence to change "for .. else" condition to this: > If second expression  is equal FALSE before looping(but after run first > express

[PHP-DEV] Re: [PHP-WEBMASTER] New wiki account

2012-05-10 Thread Alexander Moskaliov
I think the main idea of ​​this RFC: Run the code, if we had never entered in loop. In this case more sence to change "for .. else" condition to this: If second expression is equal FALSE before looping(but after run first expression of course), we run "else" code. By example: for (exp1;exp2;exp3)