D vs Go in real life
Kagamin
spam at here.lot
Thu Nov 7 02:27:50 PST 2013
Heh, from http://research.swtch.com/interfaces
> Among other metadata, the type description structure contains a
> list of the methods implemented by that type. Similarly, the
> compiler generates a (different) type description structure for
> each interface type like Stringer; it too contains a method
> list. The interface runtime computes the itable by looking for
> each method listed in the interface type's method table in the
> concrete type's method table.
So methods are tightly coupled with types after all. Doesn't look
like what go claims about decoupling types and methods.
More information about the Digitalmars-d
mailing list