• 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: assignment in if clause
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assignment in if clause


  • Subject: Re: assignment in if clause
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 27 May 2008 08:46:14 -0500
  • Thread-topic: assignment in if clause

> The style I adopted is to place the "most constant" part of an
> expression first:

I should do that. To me, it feels "wrong" particularly when comparing to the
result of a function call, but I could get used to it. Of course, comparing
2 vars it won't help, but I'm not sure how often that happens anyway...

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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: assignment in if clause (From: Kevin Grant <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 5, Issue 919
  • Next by Date: Date compiled?
  • Previous by thread: Re: assignment in if clause
  • Next by thread: Re: assignment in if clause
  • Index(es):
    • Date
    • Thread