News for hackers. Stuff that matters.
Re:The Compiler Is Your Best Friend, Stop Lying to It by awesome_dude on Wednesday December 31, 2025 @01:53PM (#46447074)
Do you really have code that's

if array.Len > 2 { X = Y[1] }

For every CRUD to that array?

That seems... not ideal

Re:The Compiler Is Your Best Friend, Stop Lying to It by skydhash on Wednesday December 31, 2025 @03:19PM (#46447877)
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?