Plange


return to the start of the innermost do, while, until, for, or for_collection loop

Example

for (employee in Employees) {
	if (employee.hoursWorked == 0) {
		continue;
	}
	
	wages = employee.hoursWorked * employee.hourlyWage;
	employee.yearToDate += wages;
	payroll.deposit(employee, wages * (1 - incomeTax));
}
			

Notes

Since if, for_collection, and others take nullary void functions as their conditional code, continue is not sensible because continue is not used in nullary void functions in general. Further (though not a reason to exclude it), the context required to correctly interpret a continue statement is easily confused. For these reasons, use of continue and break are discouraged. They are, however, supported, and will be subjected to rewrite rules and and/or other transformations.


copyright © Brent Lewis 2017