Which useful alternative control structures do you know?
Posted
by
bigown
on Programmers
See other posts from Programmers
or by bigown
Published on 2010-11-28T16:11:29Z
Indexed on
2010/12/31
8:59 UTC
Read the original article
Hit count: 428
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.
© Programmers or respective owner