while(...){ ... }else ...

Jens Bauer via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 18 14:56:23 PST 2015


On Sunday, 18 January 2015 at 18:16:47 UTC, Marc Schütz wrote:
> Unfortunately, this would break existing code:

That is absolutely correct. Good catch. I did not think of that 
particular case.

However... What if the 'else', which "belongs" to while, is named 
differently, for instance ...

while(expression1)
{
}
otherwise if(expression2)
{
}

I know otherwise is a longer word, but it would not clash with 
existing code.


More information about the Digitalmars-d mailing list