> On Oct 18, 2018, at 9:41 AM, Burak Serdar <bser...@ieee.org> wrote: > > If X is a struct type, any type implementing all the methods of X and > containing all the fields of X can be substituted The above is the problem. This almost certainly requires dynamic access to fields, essentially making all method and field access dynamic, and I don’t think the Go performance hounds will go for it. I am not even certain it can be done without runtime reflection. But still a developer having to create a Bar with all of the exported methods and fields of Foo seems daunting. -- 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. For more options, visit https://groups.google.com/d/optout.
- Re: [go-nuts] Regarding contracts Andy Balholm
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts Andy Balholm
- Re: [go-nuts] Regarding contracts Dan Kortschak
- Re: [go-nuts] Regarding contracts Beoran
- Re: [go-nuts] Regarding contracts Robert Engels
- Re: [go-nuts] Regarding contracts Robert Engels
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts Robert Engels
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts Robert Engels
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts robert engels
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts robert engels
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts robert engels
- Re: [go-nuts] Regarding contracts Burak Serdar
- Re: [go-nuts] Regarding contracts Andy Balholm
- Re: [go-nuts] Regarding contracts Eric S. Raymond