• 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: BOOL value in Dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BOOL value in Dictionary


  • Subject: Re: BOOL value in Dictionary
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 21 Nov 2008 09:19:37 -0700


On Nov 21, 2008, at 8:54 AM, David Blanton wrote:

Why is :

if ( boolVar == YES) or if ( boolVar == NO)

bad form?


It's not bad form per se, but the former is unnecessarily redundant & the "== YES" can be eliminated, and the latter can be shortened using a !.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >Re: BOOL value in Dictionary (From: Heinrich Giesen <email@hidden>)
 >Re: BOOL value in Dictionary (From: David Blanton <email@hidden>)

  • Prev by Date: Re: Autorelease Question
  • Next by Date: Re: Autorelease Question
  • Previous by thread: Re: BOOL value in Dictionary
  • Next by thread: Re: BOOL value in Dictionary
  • Index(es):
    • Date
    • Thread