4 ms·
Yup, don't do shared mutable state. It is the enemy. Avoid it like the plague. I really love value semantics with structs in swift, it's almost always the righ
by fleitz 11y ago
Yup, don't do shared mutable state. It is the enemy. Avoid it like the plague.
I really love value semantics with structs in swift, it's almost always the right thing, and generally very clear when it isn't.
If anyone ever programmed so that
int a = 15
int b = a
b = 17
assert(a == 17)
meant that a was now 17 they'd call it insane, I have no idea why anyone would want that as the default behavior.