Go has contempt for generics

Sean Kelly sean at invisibleduck.org
Sat May 29 08:43:58 PDT 2010


Andrei Alexandrescu Wrote:

> http://www.reddit.com/r/programming/comments/c93iy/go_at_io_frequently_asked_questions/
> 
> "Do you have plans to implement generics?
> Many proposals for generics-like features have been mooted both publicly 
> and internally, but as yet we haven't found a proposal that is 
> consistent with the rest of the language. We think that one of Go's key 
> strengths is its simplicity, so we are wary of introducing new features 
> that might make the language more difficult to understand. Additionally, 
> the more Go code we write (and thus the better we learn how to write Go 
> code ourselves), the less we feel the need for such a language feature."

So they've simplified the language at the cost of more complex user code.  They should have just said that they haven't found a proposal they like yet and left it at that.


More information about the Digitalmars-d mailing list