Comment

Comment by liampulles

I love and continue to love how seriously the Go team takes breaking spec changes, as well as spec changes in general.

Go generics are a bit of a blip in this to be honest, A) because it is a big change, and B) because it can be difficult to use (generic functions defined on types cannot use generic parameters that aren't defined on that type, for example).

But in a way, I also think the constraints help avoid the overuse of generics. I have seen Java and Typescript projects where developers had way too much fun playing around with the type system, and the resulting code is actually quite unclear.

In conclusion, I pray the Go team strive to and continue to be conservative with the language.

parent liampulles 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton