Y
Hacker News
new
|
ask
|
show
|
jobs
by
awesome_dude
166 days 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
1 comments
skydhash
166 days ago
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?
link