Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Isnt using & a performance issue?

 
raj sekhar
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isnt using & instead of && where usable is a performance issue?
Suggestions. For ex if I have a complicated if loop and using & with all of the conditions. I came across a code that was doing exactly the same for numerous complicated if loops.
Suggestions?
Raj
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't really understand your question, but i see no reason to use & except when there is an item in your conditional that needs to execute regardless of the result of the conditionals.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic