3 ms·
If you copy before you write, you're not mutating, you're making a new thing. e.g. This pseudo code must stand for mutation to be present. a = ... b =
by recursive 5y ago
If you copy before you write, you're not mutating, you're making a new thing.
e.g. This pseudo code must stand for mutation to be present.
a = ...
b = a
mutate(a)
/* b now mirrors a */
- TazeTSchnitzel 5y agoA language runtime can make that work if it wants to. High-level semantics don't need to constrain the implementation.
- deleted 5y ago[deleted]