• 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: Any way to combine for and if-let?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to combine for and if-let?


  • Subject: Re: Any way to combine for and if-let?
  • From: Greg Parker <email@hidden>
  • Date: Tue, 07 Jul 2015 17:51:46 -0700

> On Jul 7, 2015, at 5:30 PM, Rick Mann <email@hidden> wrote:
>
> Thanks. I was looking at the Swift reference. The docs seem to be incorrect:
>
> https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Patterns.html#//apple_ref/swift/grammar/pattern
>
> "There are two type-casting patterns, the is pattern and the as pattern. Both type-casting patterns appear only in switch statement case labels."

The power of `case` outside `switch` was increased at some point. It's likely that the documentation has not caught up. You should file a bug report.


--
Greg Parker     email@hidden     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Any way to combine for and if-let?
      • From: Rick Mann <email@hidden>
References: 
 >Any way to combine for and if-let? (From: Rick Mann <email@hidden>)
 >Re: Any way to combine for and if-let? (From: Quincey Morris <email@hidden>)
 >Re: Any way to combine for and if-let? (From: Rick Mann <email@hidden>)
 >Re: Any way to combine for and if-let? (From: Quincey Morris <email@hidden>)
 >Re: Any way to combine for and if-let? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: How to get Unicode's "General Category" of a character?
  • Next by Date: Re: Any way to combine for and if-let?
  • Previous by thread: Re: Any way to combine for and if-let?
  • Next by thread: Re: Any way to combine for and if-let?
  • Index(es):
    • Date
    • Thread