3 ms·
> If I wrote an implementation where state comprised two immutable lists for the stacks and an immutable map for the heap, wouldn't that capture the semantics o
by MaxBarraclough 9y ago
> If I wrote an implementation where state comprised two immutable lists for the stacks and an immutable map for the heap, wouldn't that capture the semantics of words in as a pure function?
A good point that slipped my mind. One can interpret Forth as modifying a stack, or, just as valid, interpret it as mapping one stack to another.
Implementation detail is just that.