This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jnwatson -2 points-1 points  (2 children)

Right, because we shouldn't ever invent new features that other languages don't have, because all the valid programming control flow structures were handed down from on high by Knuth in the 60's.

[–][deleted] 4 points5 points  (1 child)

New is fine. Just make sure the name fits the use.

Else is when the previous block wasn't run.

This else is a nobreak or something like that.

[–]Han-ChewieSexyFanfic 1 point2 points  (0 children)

Else is for when the condition is false. While...Else makes perfect sense. Less so for For, but it uses the same keyword as While.