[Swift-user] Expanding arrays in app function command lines

Mihael Hategan hategan at mcs.anl.gov
Tue Jan 27 21:29:25 CST 2009


On Tue, 2009-01-27 at 16:29 +0000, Ben Clifford wrote:
> On Tue, 27 Jan 2009, Michael Wilde wrote:
> 
> > - array of other scalar types, coerced into string in the cmd line
> 
> I think that might already happen.
> 
> Everything apart from struct has a pretty natural expansion into string 
> args. The source-code order of fields for structs is probably the best, 
> unless someone comes up with a better idea.

Though I think it may be one of those "shoot yourself in the feet"
features.

In a sense I do like the a[*] syntax because it makes it very clear that
there is a variable number of things being passed.




More information about the Swift-user mailing list