News for hackers. Stuff that matters.
Re:Why I’m not leaving Python for Go by kisielk on Sunday September 23, 2012 @11:11PM (#4563036)
In Go if you use the return value of a function you must also assign the error to something, either a variable or explicitly ignore it by assigning it to _. It was designed this way specifically to avoid the problem of not checking error conditions in C code.
Re:Why I’m not leaving Python for Go by osi on Monday September 24, 2012 @08:51AM (#4564350)
This breaks down when the method you call has no return value other than an error. In that case it is easy to forget.