Talk:Control Structures

From Rosetta Code
Revision as of 02:49, 25 January 2007 by Shock (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Most of the control structure listed under "Conditional" are actually looping constructs. For instance: for, for-each, while, do-while, and their variants. Why are all the for-each loops in a different category? Iterative? That seems less important than the fact that it's a loop. The truly conditional constructs are if-then-else, ternary, switch, and their variants. Goto, Break, and Continue are some 'control flow' constructs. The fall-through in a switch is another control flow example. 'Break' and 'continue' deserve a mention with respect to loops. So far they are completely undiscussed (except breaks in switches). Exception handling constructs could be in a 'Non-local transfer of control' section. Many modern languages implement exceptions, so there should be more on this. --Shock 21:49, 24 January 2007 (EST)