Another nice property of immutable data is that it can be safely shared between threads: const data that is a readonly view into changing mutable data may require locking to get consistent view of data; immutable data doesn't require locking, since it doesn't change.

Reply via email to