▲ | gwbas1c 3 days ago | |
Good abstractions around units (Apologies if there is a specific terminology that I should use.) Specifically, I'd like to be able to have "inches" as a generic type, where it could be an int, long, float, double. Then I'd also like to have "length" as a generic type where it could be inches as a double, millimeters as a long, ect, ect. I know they added generic numbers to the language in C# 7, so maybe there is a way to do it? | ||
▲ | evntdrvn 3 days ago | parent [-] | |
Check out F# "units of measure" ;) |