Re:Generics enabled by default in Go tip
by c-cube on Sunday August 22, 2021 @02:04PM
(#28267869)
"coupled with the preprocessor" is a bit of a cop-out :-). Do you have a concrete example of what typeof would enable? Like a basic implementation of a vector type?
[ Parent
| on HN ]
True, it is basically //go: generate, before Go was born.
Here is an example, https://codereview.stackexchange.com/questions/101816/generi...