News for hackers. Stuff that matters.
Re:Error Handling in Go (2016) by stouset on Saturday April 06, 2019 @01:26PM (#19591849)
Did you immediately notice the bug in my above code? If not, hopefully you get my point.

Compared to

    array.sum()
was the above code more or less clear? Is it more or less prone to bugs? When reading, which code will you have a quicker understanding of the intent?

And if you did notice the the first bug, did you notice the second bug?

Re:Error Handling in Go (2016) by kortex on Saturday April 06, 2019 @03:39PM (#19592595)
Well played. I noticed neither until you pointed them out. Certainly would have missed it in a code review.