News for hackers. Stuff that matters.
Re:Git Security Vulnerabilities Announced by howinteresting on Tuesday January 17, 2023 @04:15PM (#34419287)
Could be a `Result<T, T>` which would seem to express the intent better.
Re:Git Security Vulnerabilities Announced by 3836293648 on Tuesday January 17, 2023 @04:23PM (#34419405)
Sometimes, sure. But an overflow doesn't have to be an error, it can be what you're after and you just want to know when it happens.
Re:Git Security Vulnerabilities Announced by howinteresting on Tuesday January 17, 2023 @04:30PM (#34419527)
Binary search is the same way and the return type there is already Result<usize, usize>.