Re:Generics enabled by default in Go tip
by 4ad on Saturday August 21, 2021 @08:58AM
(#28256631)
You can absolutely write type-safe higher order functions without generics. You can't write generic higher order functions, but that's a tautology.
Also higher-order functions are a moot point. Higher-order functions give you convenience, but no increase in expressive power (defunctionalization is an homomorphism).
Of course, generics give you a true increase in power.
Also higher-order functions are a moot point. Higher-order functions give you convenience, but no increase in expressive power (defunctionalization is an homomorphism).
Of course, generics give you a true increase in power.