I like the concepts here, but I have to admit I'm a bit confused by the direction words like "up" and "down" and "deep" and "shallow", mainly because I've seen different people use the opposite directions when talking about a call stack.
If procedure A calls procedure B, is A upstream of B or downstream of B? Is A the shallow frame or is B the shallow frame?
I tend to think of B as the "deeper" part of the stack, but in a literal sense, a literal physical stack builds "upwards", so B is "higher" than A, one could say A is deeper down the stack than B is.
I agree with your sentiment and want to add that the same is for words like push and pull (e.g., push/pull iterators). It's kind of like doors—it might be pushed by me, but it must be pulled by you.
I like the concepts here, but I have to admit I'm a bit confused by the direction words like "up" and "down" and "deep" and "shallow", mainly because I've seen different people use the opposite directions when talking about a call stack.
If procedure A calls procedure B, is A upstream of B or downstream of B? Is A the shallow frame or is B the shallow frame?
I tend to think of B as the "deeper" part of the stack, but in a literal sense, a literal physical stack builds "upwards", so B is "higher" than A, one could say A is deeper down the stack than B is.
I agree with your sentiment and want to add that the same is for words like push and pull (e.g., push/pull iterators). It's kind of like doors—it might be pushed by me, but it must be pulled by you.