Introducing Numbat: A programming language with physical units as types - eviltoast
  • SittingWave@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    My point is that it’s mostly useless to use a language that supports these kind of things, because the proper programming practice is to normalise and treat the edge cases at the interface. Once you are inside your own codebase, you use SI at the scale that makes sense and that’s it. No more ambiguity, no more need to carry the unit around. The unit is implicit and standardised throughout your code, and you don’t have to carry around dead weight (in memory and computation) for nothing.