4 ms·
"[W]hen we say "const cannot be reassigned, nor re-declared" that does not mean const is immutable." Perhaps this would be clearer: "The identity of a const ob
by tuukkah 6y ago
"[W]hen we say "const cannot be reassigned, nor re-declared" that does not mean const is immutable."
Perhaps this would be clearer: "The identity of a const object is immutable but its state can be mutable."