News for hackers. Stuff that matters.
Re:Working with Errors in Go 1.13 by littlestymaar on Sunday October 20, 2019 @03:55AM (#21302775)
> I think the biggest win has been treating error as value and returning error via multiple return values paradigm.

Treating errors as value is cool (no exception!) but using multiple values not so much, the proper way to do so is with product types, but Go's type system don't have them unfortunately…

Re:Working with Errors in Go 1.13 by atroche on Sunday October 20, 2019 @04:18AM (#21302856)
Do you mean sum types? Like Haskell's Maybe and Rust's Result?
Re:Working with Errors in Go 1.13 by littlestymaar on Sunday October 20, 2019 @06:55AM (#21303385)
Sum types indeed, thanks. That's why I shouldn't post before breakfast.