Re: [RFC] Loop... or...
| From: | Andrea Faulds | Date: | Fri, 19 Sep 2014 23:15:01 +0000 |
| Subject: | Re: [RFC] Loop... or... | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77354@lists.php.net to get a copy of this message | ||
On 20 Sep 2014, at 00:10, Leigh <leight@gmail.com> wrote:
> I understand the desire for something python-like, however it
> certainly doesn't fall under the "or" keyword.
Why not? Python uses “else”, and before creating this RFC you initially wanted to use
“else”.
> 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.
I’m bringing it up because I think we’re only going to end up with one feature or the other, and
I think Python’s behaviour is more useful.
--
Andrea Faulds
http://ajf.me/