Hacker News new | ask | show | jobs
by leetrout 1614 days ago
If you were in the authors shoes and you disliked C++ templates would you also have written off Go without trying it, though?

No argument on going from D to something else but to not know either and not even try Go is what surprises me.

2 comments

Yeah I do much in C# and almost never use generics. And when I do it is almost always not what I want.

D has me fooled and I can't imagine Go choosing to go further in D's direction over C#. I feel sorry for them.

You almost never use List<T>? Dictionary<TKey, TValue>? IEnumerable<T>?
Those don't matter, because while you can't build your own in Go, the built in types provide the same functionality.
I was puzzled by strange linguistic ideas of go's designers. The reference to the English language can't justify go's syntax.
Do you have an example top of mind?
Array of bytes []byte being English, but byte array byte[] being not English.