News for hackers. Stuff that matters.
Re:Go's power is in emergent behavior by gliptic on Sunday April 27, 2014 @07:43AM (#7654738)
Only if the type already defines the methods for that interface. In e.g. Rust you can define whatever interface (trait) you want for external types. No need for wrappers.
Re:Go's power is in emergent behavior by NateDad on Sunday April 27, 2014 @08:14AM (#7654803)
Ahh, that's cool, I didn't realize Rust could do that. Though it does still require you to write the thing that tells the compiler their type implements your interface, right? Not a huge deal, but it's still essentially like writing a wrapper (though perhaps not as huge?) Also, it sounds like you can't implement a third party trait on a third party type, so you can't use bill's cool log writer in joe's cool log roller.