Hacker News new | past | comments | ask | show | jobs | submit login

Function calls use stacks. It is not the same thing as heap allocation.



Function calls don't necessarily need to use stacks. There is nothing preventing frame allocations on heap.


In fact, many Scheme implementations allocate their frames on the heap, because it makes it easier to support continuations.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: