The following post have detailed explanation of Go interface.
[https://forum.nim-lang.org/t/2422](https://forum.nim-lang.org/t/2422)
Current implementation doesn't support generic, because the vtable must be
build at compile time when impl is called, but with generic, this is not
possible, maybe we need the compiler to do it. :)
I am not familiar with Go interfaces. Can you please add a README that briefly
explains what your module is doing, and add few examples too?
I see that you have an example.nim, may be put that inline in your README and
explain that a little bit?
Thanks.
That's a great set of improvements! Kudos.
One thing I wanted to share -- to stimulate further improvements -- is that
when I looked at interfaced earlier, I ended up passing up on it because it's
not possible to provide type parameters for the interface itself, and for
interface methods. This
Here is the source:
[https://github.com/slangmgh/interfaced](https://github.com/slangmgh/interfaced)
I have created a modified version of Kru02's interfaced. The original post is
here: [https://forum.nim-lang.org/t/2422](https://forum.nim-lang.org/t/2422)
This version include more feature:
1. interface can inherited from other interfaces
2. interface to base interface can be conv