Cor 0.3.0 released
yosbelms.github.io
yosbelms.github.io
Sadly, it's the same mistake that CoffeeScript made: you cannot just introduce a variable, to be completely sure you didn't break anything, you'll have to search for all uses of it in outer scope above and inner scopes below.
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