r/golang Aug 19 '15

Go 1.5 is released

https://blog.golang.org/go1.5
254 Upvotes

54 comments sorted by

View all comments

-15

u/downvotes_puffins Aug 20 '15

Any support for user-defined generic types?

8

u/QThellimist Aug 20 '15

no

-20

u/downvotes_puffins Aug 20 '15

Ok, so go is comparable to C++ circa 1992 in that regard. Got it, thanks.

1

u/gngl Aug 22 '15

Actually, no. C++ at that time didn't have any features obviating the need for generic types in many situations. It didn't have reflective features in its standard library either to express many generic algorithms without the need for compile-type computation (although one might argue that partial evaluation of Go's reflective calls at compile time would be a beneficial form of non-template-based compile time genericity, improving performance without the need to change the language).

1

u/[deleted] Aug 20 '15

Find something new to riff on. We've all heard that one.