Home / Highlights / FAQ / Examples / Quick Start / Download Forum / Register / Login

Bolin

A general purpose language that is Example:
main() {
	sum := 0
	for v in [5, 7, 11] index i //index is optional
	{
		if v == 11  { break }
		sum += v
		if sum > 20 { break }
		print("$i: $v")
	}
	_OnBreak { //<-- must be immediately after loop
		print("Index $i broke out of loop")
	}
	_OnComplete { //<-- Will not execute on break
		print("Array is OK")
	}
}
Output:
0: 5
1: 7
Index 2 broke out of loop
Highlights
Examples
Quick Start
Documentation in a future release