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.
[ Parent
| on HN ]
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.
Each code in each goroutine is synchronous. That's what makes it simpler than callbacks.