‹ BackHN Continuity

Thread

C's Flexible Integer Sizes Were Not a Design Mistake

113 points · 166 comments · ibobev

  1. TheCoelacanth · · focus · HN ↗
    I would argue that flexible integers aren't the design mistake; the naming of them is.

    There should never have been a type `int` that holds a variable amount of bytes; it should have been the modern aliases like int_least32_t and int_fast32_t that actually communicate the possible size of the value.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.