• timhh@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 day ago

    No it isn’t. All statically typed languages I know of use a byte. Which languages store it in an entire 32 bits? That would be unnecessarily wasteful.

    • Aux@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      It’s not wasteful, it’s faster. You can’t read one byte, you can only read one word. Every decent compiler will turn booleans into words.