News for hackers. Stuff that matters.
Re:Replacing Clever Code with Unremarkable Code in Go by dsymonds on Wednesday June 05, 2013 @03:09AM (#5824135)
"has to" is a bit strong. The standard assumption is that pointer arguments should be set (or the function is documented otherwise), and the responsibility is left with the caller. It just bubbles out from there.
Re:Replacing Clever Code with Unremarkable Code in Go by mietek on Wednesday June 05, 2013 @09:29AM (#5825393)
Yes, this is the way things have been done since 1965. It sounds simple enough, but as it turns out, in complex systems, this is a common cause of defects.

Programmers forget to check things all the time. Assumptions made in different areas of the code, by different programmers, at different times, do not always hold.

Fortunately, computers are good at remembering to check things. We just need to allow them to do so.