3 ms·
> To me it would be conceptually simpler to consider one named variable as analogous to a memory location. But that's how it already is! The variable x is conc
by paavohtl 6y ago
> To me it would be conceptually simpler to consider one named variable as analogous to a memory location.
But that's how it already is! The variable x is conceptually a single memory location within the stack frame. The match statement doesn't own the variable x, it owns its previous contents. It has effectively removed whatever was in x and whatever remains in x's memory location is no longer accessible, but the variable is still there.
- deleted 6y ago[deleted]