4 ms·
> Another example of magic in go would be method names. You have no idea if it is safe to change the name of a method because it could be satisfying an interfac
by nuggien 10y ago
> Another example of magic in go would be method names. You have no idea if it is safe to change the name of a method because it could be satisfying an interface far away from the definition site (or in the case of exported methods nowhere you have access to).
Is this true? If you changed the name of a method, it will no longer satisfy that interface and your code would not compile.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]