Do you really have code that's
if array.Len > 2 { X = Y[1] }
For every CRUD to that array?
That seems... not ideal
Yes. Unless there’s some statement earlier that verify that the array has 2 items. It’s quick to do, so why not do it?
Yes. Unless there’s some statement earlier that verify that the array has 2 items. It’s quick to do, so why not do it?