3 ms·
I don't think the Go developers wanted to implement generics, but it was something they took a lot of heat for, and so while they relented and implemented the f
by Macha 5y ago
I don't think the Go developers wanted to implement generics, but it was something they took a lot of heat for, and so while they relented and implemented the feature, they want to use their position to suggest "best practices" to limit their use.
- icholy 5y agoThe author of the blogpost has been making proposals for generics since Go 1.0 was released. Contrary to what some of the smooth-brains on here think, generics weren't implemented because of their incessant crying.
- pstuart 5y agojinx! you owe me a coke.
- zelphirkalt 5y agoUltimately a language lives through its users. If no one had complained about the lack of generics, the Go devs would probably not have liftet a finger to implement is, as per their original design.
- icholy 5y agoIt's like you didn't even read what I said...
- pstuart 5y agoMy understanding is that Ian Lance Taylor (the author of the post) was advocating for generics from the beginning. I'll take their official explanation of not sure how to do it cleanly and satisfy the original objective of fast compilation.