News for hackers. Stuff that matters.
Re:Google’s Go Style Guide by robertlagrant on Monday November 21, 2022 @09:11AM (#33692631)
> Going back to my physics example, all the variables in a physics problem are actually of the same type, float

This is why some people recommend a practice I've forgotten the name of, where they defined a new type that maps to language type. So type Mass could just be a float, but you know better how to treat it.

There are no comments on this comment yet.