alokjha / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

struct literals: discuss the meaning of "allocate" #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
https://feedback.corp.google.com/#/Report/988764550

Description:
It's not clear from the description whether the values are being allocated on 
the heap or not. What does 'newly allocated' refer to?

UI language: en
Detected language: en

Original issue reported on code.google.com by feedback...@gmail.com on 9 Jul 2013 at 8:07

GoogleCodeExporter commented 8 years ago
In Go the programmer has no control over stack or heap allocations; the 
compiler just does the right thing. This should be clarified.

Original comment by a...@golang.org on 10 Jul 2013 at 6:51