• Anders429@programming.dev
    link
    fedilink
    arrow-up
    30
    ·
    12 hours ago

    It would be slower to read the value if you had to also do bitwise operations to get the value.

    But you can also define your own bitfield types to store booleans packed together if you really need to. I would much rather that than have the compiler do it automatically for me.