News for hackers. Stuff that matters.
Re:Go: Support for Generic Methods by thayne on Wednesday May 27, 2026 @01:39PM (#48297670)
> I personally can’t wait to see what next development will never have been “against the Go philosophy” and definitely not something that gophers argued was perfect the way it was any time misguided malcontents and rabble-rousers wrongly tried to suggest the language wasn’t perfect the way it was.

I really hope it is more ergonomic error handling. Or maybe sum types/discriminated unions.

Re:Go: Support for Generic Methods by Joker_vD on Wednesday May 27, 2026 @02:27PM (#48298389)
> I really hope it is more ergonomic error handling.

They've publicly said no more language changes specifically for better error handling are coming, it will at most be the library-level improvements.

Re:Go: Support for Generic Methods by stouset on Wednesday May 27, 2026 @02:53PM (#48298767)
So this would be in line, then, with all of the other features they’ve publicly said aren’t coming and aren’t necessary but then do anyway after retconning their original stance?
Re:Go: Support for Generic Methods by Joker_vD on Wednesday May 27, 2026 @03:27PM (#48299266)
Could esteemed commenters please read the words the Go language team actually wrote?

    > Or, we could decide that parameterized methods do not, in fact, implement
      interfaces, but then it's much less clear why we need methods at all. If
      we disregard interfaces, any parameterized method can be implemented as a
      parameterized function.
    
    > So while parameterized methods seem clearly useful at first glance, we
      would have to decide what they mean and how to implement that.
Well, they have finally decided what parameterized methods actually mean, and they see how to implement that, and it all seems clearly useful. So...
Re:Go: Support for Generic Methods by stouset on Wednesday May 27, 2026 @01:58PM (#48297967)
Those are fine the way they are. I don’t want the language getting more complicated. Rob Pike has said they’ll never happen. Suggestions like this are extremely against the Go way of doing things. Actually the verbosity is a good thing. It’s explicit.