On Thu, Mar 17, 2022 at 7:17 PM Zhaoxun Yan <yan.zhao...@gmail.com> wrote:
>
> I just came across this taboo in golang - new methods cannot be added to an 
> existing type:

Yes.  If we didn't have this prohibition, then the set of interfaces
satisfied by a type would depend on which package was using the type.

See the discussion at https://go.dev/issue/21401.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWs7kyMMc368GMovVGWQwBQ89pni%3D%3DLz%2Bo7-aLQyM8A-w%40mail.gmail.com.

Reply via email to