3 ms·
Yes, you can, but you shouldn’t to solve this problem, because typealiases aren’t new types, just–as the name suggests–aliases, so anything aliased to Int is in
by dragonwriter 4y ago
Yes, you can, but you shouldn’t to solve this problem, because typealiases aren’t new types, just–as the name suggests–aliases, so anything aliased to Int is interchangeable with Int and everything else aliased that way, so you still have exactly the same problem.
Also, cents * cents shouldn’t be cents (though cents * unitless ints should be).
- aembleton 4y agoGood point, it doesn't solve the problem