|
|
|
|
|
by geocar
3438 days ago
|
|
> This is indeed a problem with languages without mandatory variable declaration. Typos affect everyone. It is not a function of the language that causes you to mistype. It is that the program is long and you cannot see the whole thing that causes you to miss it. > Is it the case of K, Q or whatever its name is? {foo}[] generates an error because foo is unbound. What's the difference between {foox} and {fooy}? They both might be variables, and yet it is only by reading the program that you can tell which one is correct. |
|
In any language with mandatory variable declaration the code wouldn't even compile. And any decent IDE would even flag this while writing the code.