On Fri, 1 Sep 2017 07:32:34 -0700 (PDT)
[email protected] wrote:

> that a variable is considered _addressable_ and that's all there is to it.  
> Now, in C and other such languages, there is a critical distinction about 
> addresses that is relevant: is the address on the stack or on the heap?  

"Anytime a value is shared outside the scope of a function’s stack frame, it
will be placed (or allocated) on the heap. It’s the job of the escape
analysis algorithms to find these situations and maintain a level of
integrity in the program." [from: 
https://www.goinggo.net/2017/05/language-mechanics-on-escape-analysis.html]

[Or look at an old presentation of Dave Cheney:
https://dave.cheney.net/2014/06/07/five-things-that-make-go-fast]

Hope this helps :)

-- 
Wojciech S. Czarnecki
 << ^oo^ >> OHIR-RIPE

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to