Re:Your test suite is trying to tell you something
by dragonwriter on Wednesday July 03, 2013 @09:54PM
(#5988747)
> I think built is support for units is a bit to specific. Support for cheap type alias'es would work, and be far more general
Go has support for cheap type aliases for which names typed with the same underlying type are distinct types which are not mutually assignable, and, in fact, Duration is such a type with int64 as the underlying type.
Go has support for cheap type aliases for which names typed with the same underlying type are distinct types which are not mutually assignable, and, in fact, Duration is such a type with int64 as the underlying type.