Which useful alternative control structures do you know?
- by bigown
Similar question was closed on SO.
Sometimes when we're programming, we find that some particular control structure would be very useful to us, but is not directly available in our programming language.
What alternative control structures do you think are a useful way of organizing computation?
The goal here is to get new ways of thinking about structuring code, in order to improve chunking and reasoning.
You can create a wishful syntax/semantic not available now or cite a less known control structure on an existent programming language.
Answers should give ideas for a new programming language or enhancing an actual language.
Think of this as brainstorming, so post something you think is a crazy idea but it can be viable in some scenario.
It's about imperative programming.