[Swift-user] Re: [Swift-devel] Problem with iterate

Mihael Hategan hategan at mcs.anl.gov
Wed Feb 17 13:24:25 CST 2010


On Wed, 2010-02-17 at 16:58 +0000, Ben Clifford wrote:
> If anyone is *really* look at fixing it, get rid of foreach and iterate 
> and put in proper dataflow based iteration (map, foldr, whatever) such 
> that arrays are single-assignment.

Even in functional languages some of these problems are solved by
recursion rather than a single pre-defined function.

Which may or may not be fine as a usability issue, but it's almost
clearly not fine due to the lack of tail recursion optimization in
swift.




More information about the Swift-user mailing list