r/cpp • • Aug 09 '16

Stack and Heap: Commonly Misused Terms

https://tartanllama.github.io/c++/2016/07/18/stack-and-heap/
6 Upvotes

26 comments sorted by

View all comments

16

u/tcbrindle Flux Aug 09 '16

99% of the time (except for highly technical topics like function call ABIs), the terms "stack" and "heap" are already widely understood to be shorthand for referring to automatic and dynamic storage duration respectively. I'm all for being technically correct, but this post seems needlessly pedantic.

10

u/sftrabbit Aug 09 '16

I'd say this post is mostly aimed at the people who don't know that. It's an introduction to storage duration and how that is defined by the standard. There is certainly value in promoting the use of technically accurate terms for the layer of abstraction a C++ developer should typically be working at.