On 19 Sep 2014, at 22:56, Leigh <lei...@gmail.com> wrote:

> Loops with a default block, executed in the event that the loop is
> never entered.
> 
> https://wiki.php.net/rfc/loop_or

While this might be useful, I’d prefer we copy Python’s else behaviour, where a 
block of code is executed when break is never used. This feature makes code 
that does, for example, a linear search nicer to read.

--
Andrea Faulds
http://ajf.me/





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to