• @[email protected]
    link
    fedilink
    11 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.

    • lad
      link
      fedilink
      11 year ago

      When something is enforced on type level it doesn’t require your memory and usually doesn’t require computation.

      As of lately I came to think that being explicit is mostly better than being expressive. So in this case stating all the units might work better than having a concise progtam.