Re:Swift: Not quite there, but too far gone too
by danudey on Wednesday June 04, 2014 @05:03PM
(#7848292)
So immutability is a code safety feature, except in the case of arrays, where it's a performance optimization. That seems counterintuitive.
Re:Swift: Not quite there, but too far gone too
by josephlord on Wednesday June 04, 2014 @06:08PM
(#7848713)
Thanks. I think it sounds like a bad decision, it can be compile time checked so won't cause performance issues. I wonder what the cost is in the mutable case for the fact that the length can vary.
https://developer.apple.com/library/prerelease/ios/documenta...