Home / Highlights / FAQ / Examples / Quick Start / Download Forum / Register / Login
//void is implicit
main() {
	a = 10  //immutable
	b := 2  //mutable
	b += a
	assert(b == 12)
	b++
	assert(b == 13)
	
	int c   //c style declares are mutable, even if you assign a value
	c .= 24 // '.=' is assign. Please do not reuse variables (we're not reusing b)
	//this language is design to not reuse variables

	c -= add(a, c)
	print("Hello $c")
}

//you don't need to specificy int every param
//return value after params
add(int a, b) int { return a + b }