Closed ianmackenzie closed 6 years ago
More succinct, especially noticeable in cases like unwrapping/re-wrapping and using infix operators:
foo (Qty a) (Qty b) (Qty c) = Qty (a + b * c) rate = x |> Qty.plus y |> Qty.per z
Slightly more cryptic, but 'Qty' is a pretty common short form of 'Quantity'.
Tried it briefly, seemed messy - closing this for now, might revisit it later.
More succinct, especially noticeable in cases like unwrapping/re-wrapping and using infix operators:
Slightly more cryptic, but 'Qty' is a pretty common short form of 'Quantity'.