On Wed, Sep 12, 2018 at 7:32 AM, Wojciech S. Czarnecki <o...@fairbe.org> wrote: > On Wed, 12 Sep 2018 06:33:59 -0700 > Ian Lance Taylor <i...@golang.org> wrote: > >> I don't think there is any way to solve this problem as stated without >> taking a step toward metaprogramming: making decisions at compile time. > > Excuse me, how and where below stated artificial "contract adaptors" > are NOT "making decisions at compile time."?
The difference I see is that in one case we write code that can not be compiled, and then tell the compiler not to compile it. With contract adaptors--which are, of course, just a thought, not a fully fledged idea--we direct the compiler to automatically insert wrappers that make the type fit the contract. We never write code that can not be compiled. I understand if you disagree but I would hope that you can express your disagreement while avoiding language like "direction of doom." Thanks. 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. For more options, visit https://groups.google.com/d/optout.