Quote:
Originally Posted by Natsheh
No its not the same there u reversing the bits in the other hand I'm checking if user hasn't the flag. Which will check if there isn't match in the bits
Think about it ~ is a bits operator which reverse
Can you please explain how it's more readable?
|
The only different between the two methods is that one returns a boolean and the other an integer. Otherwise, they are the same.
__________________