@Bengismo : If things were good, .length may return the true size of an array ... Just like C/C++/Java/Python, etc... And use of array should be done from 0 to length-1
Here we have a configusing command, that may lead to bad coding practices ...
The best solution may be to makes .length return the true array size instead of size-1 ... But if TGC Made the current choice ... I cannot force them to change it ...
And having 2 commands is not a confusing thing.. People that wants the exact size of an array uses .size
and current .length lets existing code source being comptatible + peoples that's like this way of handling arrays can continue to use .length and don't care about .size.
Nothing confusing if things are clearly stated.