[Haskell-cafe] What is a number. (Was: Num instances for
lennart at augustsson.net
Mon Oct 5 13:06:27 EDT 2009
OK, "just pairs" have no arithmetic, but one way of defining
arithmetic is to treat the pairs as complex numbers. Or as mantissa
and exponent. Or as something else. So there's nothing wrong, IMO,
to make pairs an instance of Num if you so desire. (Though I'd
probably introduce a new type.)
On Mon, Oct 5, 2009 at 6:46 PM, Miguel Mitrofanov <miguelimo38 at yandex.ru> wrote:
>> "Just pairs" have no natural arithmetic upon them.
> Exactly my point.
>> BTW. the missing term of M.M. is DUAL NUMBERS.
> Remembered this already. Thanks anyway.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe