DEV Community

Discussion on: Taking advantage of BitMasks

Collapse
 
engineercoding profile image
Wesley Ameling

I really like this approach, as I usually use this too for even other applications. But instead of adding, I usually use a bitwise OR to add them together. While it really does not matter in this particular case, it feels more like using bitwise operations. Any particular reason for using an add operator instead of a bitwise OR?