[Swift-user] Expanding arrays in app function command lines
Mihael Hategan
hategan at mcs.anl.gov
Wed Jan 28 09:45:32 CST 2009
On Wed, 2009-01-28 at 07:55 +0000, Ben Clifford wrote:
> On Tue, 27 Jan 2009, Mihael Hategan wrote:
>
> > 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.
>
> Should you be compelled to put it after @filenames? (eg
> @filenames(whatever)[*]) to indicate that you are passing multiple things?
The "s" in "filenames" seems to be sufficient. Though it probably does
the wrong thing in this case.
>
> It also looks icky from a type system perspective - what is the type of
> a[*] and how is that distinct from a?
tuple versus array. It's standard issue in ML, Python, and other
languages.
> Its a (undocumented and unchecked)
> mysterious ordered sequence type that you can only use specifically in app
> parameters and a few other places, that there is not much to handle and
> that you should pretend doesn't exist...
>
I wouldn't change things. Just mentioned what I thought on the subject.
More information about the Swift-user
mailing list