News for hackers. Stuff that matters.
Re:Go 1.27 Interactive Tour by red_admiral on Sunday August 02, 2026 @10:08AM (#49144868)
Indeed, we're now one step away from monads. I know https://go.dev/doc/effective_go hasn't been updated for while, but it also seems to have been forgotten. "Go is an open-source programming language that focuses on simplicity ..." the page begins.
Re:Go 1.27 Interactive Tour by treyd on Sunday August 02, 2026 @10:21AM (#49144970)
You've already been able to badly implement monads in Go for 10+ years. Why wouldn't you be able to implement them in a way that the compiler can enforce correctness of?

If you don't want it don't use it. It's that simple.

Re:Go 1.27 Interactive Tour by fooooor on Sunday August 02, 2026 @10:57AM (#49145258)
No it’s definitely not that simple. Code are read more often than written, no one works in a vacuum, especially not in open source. Also, when in Rome...
Re:Go 1.27 Interactive Tour by golem14 on Sunday August 02, 2026 @11:17AM (#49145401)
If a project's owner feels that strongly about not using generics, that's a choice. No dependencies using generics, no generics allowed in PRs etc. Perfectly doable.

Also, screw those Romans ;)

Re:Go 1.27 Interactive Tour by inigyou on Sunday August 02, 2026 @10:16AM (#49144930)
Apparently the people responsible for the simplicity retired. Since it's Google, some new people want to be promoted for adding features to Go.