This will be a huge win for us.
With read
and modify
accessors, and inout
, will mutating for-loops be possible on MutableCollections
s?
for &particle in particles {
particle.position = integrate(particle)
}
I do a lot of realtime simulation and I am frequently surprised at the amount of ARC traffic when I profile our code in Instruments (it's possible to eliminate much of it, but not always). These performance improvements are very welcome and it should be possible to write predictably performant code at the first implementation. Wonderful.