0
votes
1answer
272 views

Break from loop, in a loop, a loop? [on hold]

There is a command in many programming languages to exit loop, break. The problem is break doesn't mean to break or damage something, but mean exit a loop. So, how to say, break from a loop (as ...
4
votes
1answer
336 views

Will loop constructs become obsolete? [closed]

By loop constructs I mean for… and while… constructs with nested statements. Currently I am coding a tool in Python and decided out of curiosity not to use the regular loops - and rely on ...
45
votes
7answers
4k views

Why are semicolons and commas interchanged in for loops?

In many languages (a wide list, from C to JavaScript): commas , separate arguments (e.g. func(a, b, c)), while semicolons ; separate sequential instructions (e.g. instruction1; instruction2; ...