News for hackers. Stuff that matters.
Re:Lies we tell ourselves to keep using Golang by clausecker on Tuesday November 26, 2024 @05:52PM (#42251006)
Yes and that syntax sucks.
Re:Lies we tell ourselves to keep using Golang by lionkor on Wednesday November 27, 2024 @02:00AM (#42253648)
That sounds like your opinion rather than a "it sucks because it encouraged bad practices" or something
Re:Lies we tell ourselves to keep using Golang by clausecker on Sunday December 01, 2024 @08:23AM (#42288331)
if err != nil { return err; } is an antipattern. Codifying it through builtin constructs does not change this, but instead encourages such poor error handling. That's why try sucks.