4 ms·
Before using it in a real project, it is obvious to do some research, isn't it? So some questions and concerns arise, naturally. Regarding generics, I really do
by zura 14y ago
Before using it in a real project, it is obvious to do some research, isn't it?
So some questions and concerns arise, naturally. Regarding generics, I really don't like what Go offers instead [1].
By the way, creators themselves haven't eliminated the chance of adding generics in later versions of the language [2].
Also, I don't understand why not have destructors (deterministic, not the finalizer...) in many cases where currently `defer` is used.
I also don't like the trick you have to do for checking the interface integrity [3].
All in all, I have a sympathy for Go, lets see what will happen in 2.0.
[1] http://stackoverflow.com/questions/6255720/making-generic-algorithms-in-go/9651473#9651473 http://stackoverflow.com/questions/6255720/making-generic-al...
[2] http://golang.org/doc/go_faq.html#generics http://golang.org/doc/go_faq.html#generics
[3] http://golang.org/src/pkg/encoding/json/stream.go#L187 http://golang.org/src/pkg/encoding/json/stream.go#L187