[Haskell-cafe] Re: Is there anything manifestly stupid about this code?

Aaron Denney wnoise at ofb.net
Mon Jul 7 13:23:45 EDT 2008


On 2008-07-07, Luke Palmer <lrpalmer at gmail.com> wrote:
> On Mon, Jul 7, 2008 at 2:21 PM, Michael Feathers
><mfeathers at mindspring.com> wrote:
>> BTW, I only noticed the Complex type late.  I looked at it and noticed that
>> all I'd be using is the constructor and add.  Didn't seem worth the  change.
>
> You would also be using the multiply and magnitude functions!

Well, he should continue to use a custom "magnitude squared" function,
to save the square-rooting.

-- 
Aaron Denney
-><-



More information about the Haskell-Cafe mailing list