On 19 September 2014 23:47, Andrea Faulds <a...@ajf.me> wrote: > > 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/ >
Hey Andrea, The RFC describes in particular why the else keyword is a bad choice, and opens up the possibility of Python-style "else" in a future RFC. Please consider this feature request as independent of any python-related functionality. I understand the desire for something python-like, however it certainly doesn't fall under the "or" keyword. If anything we could probably get away with it under "and", or introduce a new keyword of "then", but really, that is a subject for a different thread altogether. This thread is about the "loop not entered" syntax. Lets stick to that for now, and I'm more than happy to create a thread for the other scenario later on, and we can discuss the python style there instead. Cheers, Leigh. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php