Richard Bucker

Golang Release Generics

Posted at — Mar 16, 2022

Golang release 1.18 is out now with some interesting enhancements. Since this is a point release it’s supposed to be completely backward compatible; which I’m happy about… But one feature that is upsetting is generics and I’m even more pissed off by the descriptions that accompany the release pertaining to generics.

First of all if you want generics use java. Second use code generation. (moving the generic code generation into the compiler is just a waste and adds needless complexity)

I read an article where the author said that generics made the executable code faster. Anyone grounded in common sense and a technical computer science degree knows better.