[swift-evolution] Constant generic properties in mutable contexts

Brent Royal-Gordon brent at architechies.com
Sat Jan 30 09:58:30 CST 2016


> This model would allow for more immutability in mutable contexts which ultimately leads to less bugs.

What bugs does this prevent? If the array is mutable, that means you can replace any element in it with another element, which in a value type is exactly equivalent to changing the existing value's properties.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list