News for hackers. Stuff that matters.
Re:Half a decade with Go by pjmlp on Tuesday November 11, 2014 @06:50AM (#8589378)
D and C++ templates for example.

F# also supports it, given its ML linage.

C# tricks with dynamic, although in this case it is dynamic typing, so not really the same thing.

Re:Half a decade with Go by seabee on Tuesday November 11, 2014 @07:14AM (#8589441)
The disadvantage of C++ templates is the structural type is implicit - you only know if the input object satisfies the type if you read the documentation, code, or can decipher the error message that occurs if it didn't.

Concepts would have fixed this, but we don't have concepts and maybe never will!

Re:Half a decade with Go by pjmlp on Tuesday November 11, 2014 @08:20AM (#8589626)
> Concepts would have fixed this, but we don't have concepts and maybe never will!

enable_if and type traits are a workaround for the time being.

Concepts lite will definitely be in the next revision.