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