Proposal: for/then/else statement

Tobias Pankrath tobias at pankrath.net
Thu Jan 3 02:00:09 PST 2013


On Thursday, 3 January 2013 at 09:51:59 UTC, Linden Krouse wrote:
>> 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.

I don't think any new keywords will make it into the language.


More information about the Digitalmars-d mailing list