[Haskell-cafe] Re: Problems with strictness analysis?
Achim Schneider
barsoap at web.de
Wed Nov 5 09:10:49 EST 2008
Henning Thielemann <schlepptop at henning-thielemann.de> wrote:
> Achim Schneider schrieb:
> > Henning Thielemann <schlepptop at henning-thielemann.de> wrote:
> >>
> >> There was
> >> http://www.haskell.org/haskellwiki/Things_to_avoid
> >>
> >> which has been renamed to the more friendly
> >> "Haskell programming tips"
> >>
> > I was rather thinking of a list of performance pitfalls and laziness
> > tarpits, starting with the all-famous
> >
> > avg xs = sum xs + length xs
>
>
> (/) instead of (+) ?
>
Only for sufficient correct definitions of avg.
--
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.
More information about the Haskell-Cafe
mailing list