"Variable announcing" solves that issue, please see the example in the following link:
http://yosbelms.github.io/cor/docs/playground/index.html#lin...
http://yosbelms.github.io/cor/docs/playground/index.html#lin...
1- `var` keyword. Like javascript. It assumes all variables are global if not declared with `var`. 2- `global` keyword. Like PHP. It assumes all variables are local unlike that is annotated with `global`. 3- Ruby-like, Coffeescript-like.
A mixing of options number 1 and 3 was chosen.
I will open an issue regarding this subject, considering your proposal for future versions.
someVar := 123 //declared and assigned
someVar = 456 // reassigned
anotherVar = 777 // error: undeclared variable