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?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?