On Thu, Feb 20, 2014 at 10:21 AM, Russel Winder <rus...@winder.org.uk>wrote:

> The thing here is that those people who are actually using Go for real
> problems, are finding ways of using the interface{} construct to achieve
> polymorphism for the problems they are solving,


The downside to doing that; however, is taking a performance hit, correct?
There would always be an indirection when accessing methods via an
interface, as opposed to having generics. Compare the Sort package to how
C++ is able to inline the custom sorting routine.

--
Ziad

Reply via email to