• 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: Good idea/bad idea?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Good idea/bad idea?


  • Subject: Re: Good idea/bad idea?
  • From: Andy Lee <email@hidden>
  • Date: Fri, 25 Apr 2014 10:38:37 -0400

On Apr 25, 2014, at 10:22 AM, Sean McBride <email@hidden> wrote:
> The 'if form' is arguably better for testing too.  Many code coverage tools are line-based, and with this form it's easier to see if your test cases cover going in the branch and not.

Sure, and similarly for plain old stepping through the code.  Xcode steps over a whole ?: expression at once, and doesn't show you which branch it took.

--Andy


_______________________________________________

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: Good idea/bad idea?
      • From: Alex Zavatone <email@hidden>
References: 
 >Good idea/bad idea? (From: Alex Zavatone <email@hidden>)
 >Re: Good idea/bad idea? (From: Luther Baker <email@hidden>)
 >Re: Good idea/bad idea? (From: Lee Ann Rucker <email@hidden>)
 >Re: Good idea/bad idea? (From: Alex Zavatone <email@hidden>)
 >Re: Good idea/bad idea? (From: Andy Lee <email@hidden>)
 >Re: Good idea/bad idea? (From: Quincey Morris <email@hidden>)
 >Re: Good idea/bad idea? (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Good idea/bad idea?
  • Next by Date: Re: Good idea/bad idea?
  • Previous by thread: Re: Good idea/bad idea?
  • Next by thread: Re: Good idea/bad idea?
  • Index(es):
    • Date
    • Thread