3 ms·
> Generic Programming The author does not seem to be aware that generics are coming in Go 1.18. > Language Extensibility Go was carefully designed to disallo
by mseepgood 5y ago
> Generic Programming
The author does not seem to be aware that generics are coming in Go 1.18.
> Language Extensibility
Go was carefully designed to disallow this kind of extensibility. The point is that operators and other language constructs like `for ... range` always can be trusted and have a known cost. The author basically lists a pro as a con.