creationix / jack

Another new language. The name will probably change.
109 stars 7 forks source link

Allow inline define and assign variables #5

Open creationix opened 10 years ago

creationix commented 10 years ago

Currently, you have to define local variables using the vars keyword.

vars a, b
a = 1
b = 2

After this change, you will be able to do it in a single line

let a = 1
let b = 2

The variable is defined from that point onward. If you try to access it before it's defined, it will not be defined. This should be a static error when compiling.

120687 commented 7 years ago

Simple