[swift-evolution] SE-0171: Reduce with inout

David Rönnqvist david.ronnqvist at gmail.com
Sat Apr 15 01:44:15 CDT 2017


> 	• What is your evaluation of the proposal?

+1 This is a small, but very useful addition. I like the argument label `into`, and using it to distinguish between the two implementations. 

> 	• Is the problem being addressed significant enough to warrant a change to Swift?

Yes. Reducing and accumulating into structures like arrays or dictionaries can be very powerful. 

> 	• Does this proposal fit well with the feel and direction of Swift?

Yes. It makes it easier for developers to write higher level code with good, predictable performance. 

> 	• If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?

I don't recall other languages that provide different implementations of higher order functions with different performance characteristics. However, I've used other languages that provide different data structure implementations with different performance characteristics.

> 	• How much effort did you put into your review? A glance, a quick reading, or an in-depth study?

A quick reading of the proposal and the other reviews so far.

Regards,
David



More information about the swift-evolution mailing list