Re:Everyday hassles in Go
by cjslep on Tuesday December 30, 2014 @08:08AM
(#8814403)
Sure, you can fail to capture any return variable (not just errors) in lots of languages. What is available to Go that isn't in, say, C++ or Java is the "black-hole variable" marked with the underscore _ so its very much a stylistic choice to insert it in Go where errors would be returned. Applied consistently, you can gain a lot of readability. But it is very much a stylistic choice.
[ Parent
| on HN ]
There are no comments on this comment yet.