DEV Community

Discussion on: Using Bitwise Operators: Why Waste Space Use Many Bits When Few Bits Do Trick?

mohsenalyafei profile image
Mohsen Alyafei • Edited on

I agree with the title. With one 32 bit number, I can have a function that has up to 32 option flags as an input parameter passed in one single number, without having to create an object with 32 names and values. Maybe because of my ARM and x86 assembler way of thinking :-)