DEV Community

Discussion on: Golang for Experienced Developers

leob profile image
leob • Edited on

Exactly! You end up copy/pasting and rewriting loops endlessly, because there are no Generics.

I think it's a good thing that Go is simple, that's the philosophy of the language and they should stick to it. I've also looked at Rust, and it's brilliant but it is HARD.

But, they should REALLY consider adding generics to Go ... if they're allowed to add one and only one thing to the language, generics it should be.

Thread Thread
livesamarthgupta profile image
Samarth Gupta Author

I guess generics are on their way in Go. Check freecodecamp.org/news/generics-in-...

Thread Thread
leob profile image
leob

Yeah I heard they were working on it, great to see that it's coming!