Go has contempt for generics

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri May 28 21:18:50 PDT 2010


On 05/28/2010 08:44 PM, bearophile wrote:
> Andrei Alexandrescu:
>> That has Java 1994 written all over it.
>
> Java today can be the most used language, so despite its faults, probably it was good enough.
> Even if Go has no templates, it has plenty of time to add them five years from now :-)
> (And in the end templates aren't the only way to design a type-generic language).

No language has plenty of time for anything. And the major problem with 
Go is that its authors seem to not get type genericity at all and try to 
pretend it doesn't exist. That is a pernicious mistake that will cost 
that language dearly. (This happened with early Java as well; one 
hallmark of Java is that it talked out of existence all necessities of 
modern languages until it adopted them, invariably too late to be 
properly integrated.) FWIW my impression of Go is veering quickly from 
"well what can you ask? it's unfinished" to active dislike. They don't 
know what they're doing.

Andrei


More information about the Digitalmars-d mailing list