Re: Swift Question: Tuple Return Types
Re: Swift Question: Tuple Return Types
- Subject: Re: Swift Question: Tuple Return Types
- From: Marco S Hyman <email@hidden>
- Date: Thu, 26 Feb 2015 18:06:34 -0800
> On Feb 26, 2015, at 5:47 PM, Kyle Sluder <email@hidden> wrote:
>
> The grammar and the type system are two different things. Where the
> grammar says "tuple-type", it is referring to a specific production.
> That production might not actually produce a valid tuple type. For
> example, `(inout Int...)` satisfies the production for tuple-type but is
> not a valid type declaration for a variable, nor is it a valid type for
> the arguments of a function.
Very true. But the text accompanying the grammar is pretty explicit that
(Type) is Type, not a tuple.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden