💾 Archived View for dcreager.net › swanson › four-stacks.gmi captured on 2024-06-16 at 12:28:18. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

Four stacks

Putting invocation receivers and enclosed values on the same stack makes sense, because then invoking a quotation will “replace” the quotation with its enclosed value before the selected branch starts executing. (Note that you _can_ invoke a quotation from any stack, it's just that doing so from stack 1 will be most typical. Invoking from stack 0, for instance, is possible, but then you have to do more complicated dig/bury dances to line up the parameters just right.)

Updates

This is no longer the stack layout that I'm actually using; I've switched to “Bethel stacks”.

Bethel stacks