3 ms·
I really really doubt Go will ever get generics better than Java's, if ever. Generics bring in inherent intellectual baggage that the Go team very much tries to
by whateveracct 11y ago
I really really doubt Go will ever get generics better than Java's, if ever. Generics bring in inherent intellectual baggage that the Go team very much tries to avoid (unsuccessfully fwiw: Many people eventually hit the question of "Why can't I pass []Type to []Interface if T fulfills Interface?" or in other words "why aren't Go slices covariant?")
- TheHydroImpulse 11y agoI disagree. Useful, proven abstractions like Futures, Map, Filter, Functors are actually simpler to use and reason about -- not more complex.
- nickpsecurity 11y agoSimpler enough to use and reason about that tools in such languages have been mathematically verified a lot by relatively small teams. The imperative, popular alternatives are usually PhD projects for people attempting such things. Speaks volumes about the intrinsic complexity of reasoning about such things.
- whateveracct 11y agooh I agree, but the Go Way does not