On Mon, Jul 25, 2016 at 11:05 AM, T L <tapir....@gmail.com> wrote: > Then why > > T{...} > > can't be a syntactic sugar for > > tmp := T{...} > tmp > > and tmp is an okay receiver. > :P
It is (effectively); that works just fine: https://play.golang.org/p/SF2lznWaRj eg. (T{}).f() should work. -- 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.