3 ms·
It is definitely better than before, but doesn't really change the game much. It has severe limitations. My biggest hope when generics were announced was that
by dgunay 4y ago
It is definitely better than before, but doesn't really change the game much. It has severe limitations.
My biggest hope when generics were announced was that we'd finally get an alternative to writing `if err != nil` 10+ times per function, but it doesn't support generic method type parameters. That alone kneecaps it severely by making type-safe method chaining useless in most scenarios (unless you never need to map to another type, ever, I guess. Lucky you.)