• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Swift Question: Tuple Return Types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Swift Question: Tuple Return Types
      • From: Marco S Hyman <email@hidden>
References: 
 >Swift Question: Tuple Return Types (From: Mike Ellard <email@hidden>)
 >Re: Swift Question: Tuple Return Types (From: Marco S Hyman <email@hidden>)

  • Prev by Date: Re: Swift Question: Tuple Return Types
  • Next by Date: Re: Swift Question: Tuple Return Types
  • Previous by thread: Re: Swift Question: Tuple Return Types
  • Next by thread: Re: Swift Question: Tuple Return Types
  • Index(es):
    • Date
    • Thread