[Swift-devel] Re: Criteria for rollout

Ben Clifford benc at hawaga.org.uk
Thu Jan 10 18:04:07 CST 2008


On Thu, 10 Jan 2008, Mihael Hategan wrote:

> Another good point. @filenames. But then looking at the code for passing
> an array, it doesn't seem like it keeps any particular order either:

I didn't even know passing an array outside of @filenames worked...

> if (handle.getType().isArray()) {
>   Map value = handle.getArrayValue();
>   if (handle.isClosed()) {
>     return new PairIterator(value);
> ...
> public PairIterator(Map map) {
>   this.it = map.entrySet().iterator();
> 
> However, @filenames hurts. The other one not as much.

yeah.

I think the correct behaviour should be to output in the order of the 
array indices (for both plain array passing and for @filenames).

I don't think anything else maps over an array apart from @filenames.

-- 



More information about the Swift-devel mailing list