You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I hadn't considered that. It's self-evident that things are (metaphorically) put onto the stack , and maybe programmers adopted that expression for both. For the heap, in works too. Is there a difference in expressing data being written (on), and residing somewhere (in)?
In the book, the section on the stack and heap appears to use on throughout.
Sorry I accidentally close this via my PR, feel free to reopen this if you want.
My unscientific checking shows that java "on the heap" has the same number of result with java "in the heap" in google so maybe they are both commonly used.
Activity
phungleson commentedon Feb 3, 2017
Quickly did a search, seems like
in the heap
is a very common phrase in the doc.Maybe it is a convention?
adrian5 commentedon Feb 3, 2017
Yes, I hadn't considered that. It's self-evident that things are (metaphorically) put onto the stack , and maybe programmers adopted that expression for both. For the heap, in works too. Is there a difference in expressing data being written (on), and residing somewhere (in)?
In the book, the section on the stack and heap appears to use on throughout.
Rollup merge of rust-lang#39486 - phungleson:tiny-doc-wording-change,…
Rollup merge of rust-lang#39486 - phungleson:tiny-doc-wording-change,…
Rollup merge of rust-lang#39486 - phungleson:tiny-doc-wording-change,…
phungleson commentedon Feb 4, 2017
Sorry I accidentally close this via my PR, feel free to reopen this if you want.
My unscientific checking shows that
java "on the heap"
has the same number of result withjava "in the heap"
in google so maybe they are both commonly used.Rollup merge of #39486 - phungleson:tiny-doc-wording-change, r=alexcr…