2 ms·
I think the author just re-invented the technical trick behind object-oriented languages. Instead of having the blocks in a block-structured language having a s
by cratermoon 4y ago
I think the author just re-invented the technical trick behind object-oriented languages. Instead of having the blocks in a block-structured language having a stack frame, move the block – data and code – onto the heap. As a result, instead of the block being popped off the stack at the end of execution and discarded, the block still existed, and could be accessed again, if the program held a reference to it. In short, functions on the heap.
https://cmdev.com/blog/2022-10-21-functionsontheheap/ https://cmdev.com/blog/2022-10-21-functionsontheheap/