On Apr 25, 2014, at 10:22 AM, Sean McBride <s...@rogue-research.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to