<div class="gmail_quote">On Wed, Jun 6, 2012 at 9:53 PM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Jun 7, 2012 at 9:58 AM, Bruce Leban <<a href="mailto:bruce@leapyear.org">bruce@leapyear.org</a>> wrote:<br>
> If we could go back in time I would completely agree. But since we can't,<br>
> flipping meaning of else would be too error inducing and therefore not at<br>
> all likely.<br>
<br></blockquote><div>SNIP </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If anything were to change at the language level, my preference would<br>
be </blockquote><div>SNIP </div><div><br></div><div>My preference would be for a new keyword: nobreak</div><div><br></div><div>This would work well with for/else and while/else which would become</div><div>for/nobreak and while/nobreak</div>
<div><br></div><div>I think that anyone reading</div><div><br></div><div>while ...</div><div>   ....</div><div>nobreak:</div><div>   some statements</div><div><br></div><div>would (more) immediately understand that "some statements" are going to be executed if no break occurred in the above block.</div>
<div><br></div><div>But I doubt that something like this will ever be considered even though it could be introduced now without breaking any code (other than that which uses "nobreak" as a variable ... which should be rare) by making it first a duplicate of the for/else and while/else construction which would be slowly deprecated.</div>
<div><br></div><div>Just my 0.02$ ...</div><div><br></div><div>André</div></div><br>