|
Why is the syntax for the declaration of global and local
variables so different? It seems inconsistent.
// Declares and initializes
define variable x = 1; // a global variable
let x = 1; // a local variable
Why didn't they use a syntax like:
define global variable x = 1;
define local variable x = 1;
(or some shortened version of something like that.)
The same can be said of methods:
define method my-method (x)
x;
end method
local method my-method (x)
x;
end;
The words to initialize the global vs. local functions do not
follow a logical syntax.
Also the statments that end the methods are not the same.
"end method" vs. "end;"
Also local methods are intialized with the syntax "local
method", but local variables are initialized with "let". It seems
very inconsistent to me.
Or is there something more I should consider? (I know realize
that "global" methods provide for generic functions.)
|