3 ms·
> C at the very least teaches the difference between stack and heap memory, a crucial concept obscured by most higher-level languages. Go does that too. C teac
by aikah 8y ago
> C at the very least teaches the difference between stack and heap memory, a crucial concept obscured by most higher-level languages.
Go does that too. C teaches manual memory allocation, de-allocation and pointer arithmetic as well.
- xfer 8y agoNo, it doesn't. Go does escape analysis and allocates stuff on heap if needed.
- majewsky 8y agoNo. In the machine model used by Go, everything is allocated on the heap. The optimizing part of the compiler can then move allocations from the heap onto the stack if it can prove that the allocation does not escape the lifetime of a stack frame.