A better anytype?

I think anytype is fine as it is, and cannot be improved without changing other parts of the language and making it more complicated.
Maybe the introduction of some kind of compile time interfacese/traits would help, but this would fundamentally change the language and it will produce other problems elsewhere (e.g. consider 2 different libraries which both have a different declaration of the same interface).

4 Likes