Re: Swift Question: Tuple Return Types
Re: Swift Question: Tuple Return Types
- Subject: Re: Swift Question: Tuple Return Types
- From: Kyle Sluder <email@hidden>
- Date: Thu, 26 Feb 2015 19:47:26 -0600
On Thu, Feb 26, 2015, at 06:51 PM, Marco S Hyman wrote:
> A strict reading of the grammar says that a tuple-type is only one of the
> many types that can be returned.
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.
--Kyle Sluder
_______________________________________________
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