• 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: should computed properties be able to throw exceptions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift: should computed properties be able to throw exceptions?


  • Subject: Re: Swift: should computed properties be able to throw exceptions?
  • From: Rick Mann <email@hidden>
  • Date: Fri, 21 Aug 2015 21:00:36 -0700

> On Aug 21, 2015, at 20:58 , Greg Parker <email@hidden> wrote:
>
>> Also, if the method of the call site is marked as "throws," does that mean the error will propagate out?
>
> Nothing you write in Swift will have any effect on C++/ObjC exception unwinding.

Sorry, I meant within Swift's error handling, if the call site does nothing other than be a function marked with throws, that's legal right?

func
one() throws
{
    two()
}


func
two() throws
{
    throw something
}

--
Rick Mann
email@hidden



_______________________________________________

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: Swift: should computed properties be able to throw exceptions?
      • From: Greg Parker <email@hidden>
References: 
 >Swift: should computed properties be able to throw exceptions? (From: Rick Mann <email@hidden>)
 >Re: Swift: should computed properties be able to throw exceptions? (From: Quincey Morris <email@hidden>)
 >Re: Swift: should computed properties be able to throw exceptions? (From: Rick Mann <email@hidden>)
 >Re: Swift: should computed properties be able to throw exceptions? (From: Greg Parker <email@hidden>)
 >Re: Swift: should computed properties be able to throw exceptions? (From: Rick Mann <email@hidden>)
 >Re: Swift: should computed properties be able to throw exceptions? (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: Swift: should computed properties be able to throw exceptions?
  • Next by Date: Re: Swift: should computed properties be able to throw exceptions?
  • Previous by thread: Re: Swift: should computed properties be able to throw exceptions?
  • Next by thread: Re: Swift: should computed properties be able to throw exceptions?
  • Index(es):
    • Date
    • Thread