Home / Highlights / FAQ / Examples / Quick Start / Roadmap / Download / About Us

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")
	}
	on break { //<-- must be immediately after loop
		print("Index $i broke out of loop")
	}
	on complete { //<-- Will not execute on break
		print("Array is OK")
	}
}
Output:
0: 5
1: 7
Index 2 broke out of loop

Supports debugging