4 ms·
That's not quite the same thing, as in f# a unit of measure actually makes not interchangable. While a type alias, afaik, literally is just an alias, without pr
by Akronymus 4y ago
That's not quite the same thing, as in f# a unit of measure actually makes not interchangable. While a type alias, afaik, literally is just an alias, without preventing you to do something like that:
typealias Cent = Int
typealias Euro = Int
SomeEuro = SomeCent
In f#, measures aren't bound to any specific numeric type either.