|
|
|
|
|
by AnimalMuppet
3992 days ago
|
|
I wonder if "generics + traits" (where C++ is trying to go) is essentially the same as "no generics + interfaces" (Go's version of the same thing, maybe?) Edit: On reflection, "traits" is probably the wrong word. C++ has a word for this, but I'm drawing a blank at the moment. |
|
It's the same end result, but without the speed and the type checking of proper Generics.
(Assuming you mean "empty interfaces" (interface{}). Else, regular interfaces are not the same thing as Generics.
>On reflection, "traits" is probably the wrong word. C++ has a word for this, but I'm drawing a blank at the moment.
Templates?