News for hackers. Stuff that matters.
Re:Generics aren't ready for Go by heavenlyblue on Monday February 18, 2019 @09:38AM (#19190821)
Yeah, and that's why Go code is a spaghetti of communicating via channels, rather than callbacks.
Re:Generics aren't ready for Go by johnydepp on Monday February 18, 2019 @10:11AM (#19191166)
Go channels are very handy and magnitude of less spaghetti than futures. And goroutines have good performance.

I think people are used to futures etc, that's why the new concept feels strange.

I think the goroutines and channels are the biggest features which compensates for generics.

Re:Generics aren't ready for Go by emersion on Monday February 18, 2019 @09:44AM (#19190876)
Each code in each goroutine is synchronous. That's what makes it simpler than callbacks.
Re:Generics aren't ready for Go by weberc2 on Monday February 18, 2019 @09:54AM (#19190990)
Callbacks are prolific in Go; not sure where you're getting this from...