4 ms·
Thank you. Actually, what I think the best way is to make it an error to use undeclared variable, unlike in JavaScript. If it's a global, is should be declared
by dchest 11y ago
Thank you. Actually, what I think the best way is to make it an error to use undeclared variable, unlike in JavaScript. If it's a global, is should be declared in global scope. I really like this way of declaring variables, so please consider it:
someVar := 123 //declared and assigned
someVar = 456 // reassigned
anotherVar = 777 // error: undeclared variable