News for hackers. Stuff that matters.
Re:Fixing for Loops in Go 1.22 by za3faran on Thursday September 21, 2023 @01:00PM (#37600528)
Having worked on large golang codebases, it shows quite quickly how badly error handling is, the example you mentioned being one of them, as well as others not detected by the compiler or linter. Using multiple return values to model errors is fundamentally broken, as with other things they chose with the language, either deliberately or not.

There are no comments on this comment yet.