[Swift-devel] Associative array in Swift [GSoC]

Mihael Hategan hategan at mcs.anl.gov
Fri Jun 17 16:36:43 CDT 2011


On Fri, 2011-06-17 at 21:26 +0000, Ben Clifford wrote:

> One practical problem, for example, is if I want to use the value of a[0]. 
> How can I know when that value is fully specified? If I have to wait until 
> there are no more writes to a[], then a lot of the pipelining stops 
> working - in swift now, i can use values of a[] as they are written (for 
> example, in foreach loop), without having to wait for a[] to be fully 
> populated.

I think a[0] would be treated like an array over which one could
iterate. But then we can already have arrays of arrays, so I'm not quite
sure what the issue is here.




More information about the Swift-devel mailing list