Proposal: for/then/else statement

Linden Krouse ztaticnull at gmai.com
Thu Jan 3 01:51:58 PST 2013


> Python has a very similar thing, where you can have an else 
> after a loop. However I always found it unintuitive whether the 
> else branch gets executed if you break the loop or if you 
> finish all iterations without breaking. Even now I'd have to 
> look it up.

"then" and "else could be changed to something more descriptive, 
they were just the first keywords that came to mind.


More information about the Digitalmars-d mailing list