Remix.run Logo
awesome_dude 11 hours 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 10 hours ago | parent [-]

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?