Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by fmstephe on Monday October 19, 2015 @05:38PM
(#10415978)
I am curious about the limitations around memory layout. Go provides a fair amount of control to the programmer. Fields appear in the order declared in a struct (although potentially padded), structs declared as values, not pointers, are located in memory with the declaring struct and we can have arrays and slices of non-pointer structs they will all be arranged contiguously in memory.
I am not a C/C++ programmer are there more powerful facilities provided in these languages?
I am not a C/C++ programmer are there more powerful facilities provided in these languages?
Real question, not trying to start a flame war :)