Hi all,

I would appreciate it if someone could help me understand what exactly I'm 
doing in the code below. My experience with Go spans a few weekends in 
total so please bear with the naiveté of my question.

When I do this

    https://play.golang.org/p/rQvmZEqq8tp

the factory and the gadget share the same specs. When I do this 

    https://play.golang.org/p/-Gi5N-kpKFq

they don't. 

*Question*: *What is the proper way to reason about this code?*

I'm mostly looking for an efficient mental model that makes an expert go 
"of course...", because I've been trying to track references and pointers 
in my head with no success.

On a different note---my apologies if I sound cheesy---thank you for making 
and generously sharing Go. I think you can tell a good piece of engineering 
when it puts a smile on your face.

Thanks in advance.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/324a3a88-0aa9-42aa-9afc-a9c2874abd86o%40googlegroups.com.

Reply via email to