aviatorscript
aviatorscript copied to clipboard
variable attribute syntax
Just like lua 5.4 variable attribute, for example:
let c <const> = 1;
c = 2; ##report error
c is declared to be const, it can't be assigned a new value.
{
let file <close> = io.open("test.txt");
}
## exit scope, the file is closed automatically.