comparison or assignment
Posted: Fri Aug 11, 2017 1:53 pm
It's about the "=" operator.
Is there an enough important reason the Hollywood uses the same operator "=" for comparison and assignments as well?
My code grows up, and it makes me confused sometimes looking through and seeing e.g. val=0. I had to stop for a while and hard figure out is it an assignment or not.
Is there an enough important reason the Hollywood uses the same operator "=" for comparison and assignments as well?
My code grows up, and it makes me confused sometimes looking through and seeing e.g. val=0. I had to stop for a while and hard figure out is it an assignment or not.