On 11/26/2010 07:22 PM, Bruno Medeiros wrote:
But more importantly, there is a simple solution: don't write such code, don't use arrays like if they are lists, preallocate instead and then fill the array. So with this alternative behavior, you can still write efficient code, and nearly as easily.
What about when you don't know the length before, or working with immutable elements?
The only advantage of the current behavior is that it is more noob friendly, which is an advantage of debatable value.
I believe you will find to have that exactly backwards.