|
|
|
|
|
by pansa2
1969 days ago
|
|
The justification for function-scope instead of block-scope is that only the former really works if you have implicit variable declarations. In turn, implicit variable declarations (using the same syntax for initialisation and assignment) are a reasonable choice for a language that aimed to be “executable pseudocode” and that supports mixing initialisation and assignment in a single statement (e.g. `a, b, self.c = foo()`). |
|
Having the same syntax for initialization and assignment is quite quæstionable.