On Mon, Jul 25, 2016 at 5:50 PM T L <tapir....@gmail.com> wrote:

> If T{} is like 42, why “(&T{})" is legal?

Because

        &T{...}

is syntactic sugar for

        tmp := T{...} // behind the scenes
        &tmp

and &tmp is an okay receiver in the OP.



-- 

-j

-- 
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.

Reply via email to