Talk:Loops/Continue: Difference between revisions

From Rosetta Code
(No difference)

Revision as of 13:39, 6 February 2010

Modula-3

Was the Modula-3 example supposed to have the word "RAISE" in it somewhere? --Mwn3d 20:54, 9 January 2009 (UTC)

Er, whoops, meant to write RETURN, fixed now :P --Mbishop 21:10, 9 January 2009 (UTC)

Shouldn't this made more explicit?

The task asks just for an output, does not force nor suggest how to achieve it. Yes, one can take a look at written example, but if all we need is to compliant to task requirements, than the Loop/Continue feature could be missed! Shouldn't the task contain a sentence like "forcing the next iteration within the loop"? So I've done it (I'm feeling bold in modifying the wiki today:D) --ShinTakezou 11:54, 27 April 2009 (UTC)

Poor example?

Isn't this a poor example of continue, since it is so easily completed using an if-else instead? How about a task which is more of an 'early-exit' sort of situation? --Kevin Reid 16:40, 16 May 2009 (UTC)

"Early exit" sounds more like break to me. The task says to force the next iteration. I think that's enough. --Mwn3d 16:45, 16 May 2009 (UTC)