[Haskell-cafe] More idiomatic use of strictness

Grzegorz Chrupala grzegorz.chrupala at computing.dcu.ie
Fri Jul 11 09:19:45 EDT 2008



Don Stewart-2 wrote:
> 
> I'd use a strict pair and the rnf strategy.
> 
>     data P = P [Something] !Int
> 
>     rnf dfs' (P dfs' (n+1)
> 

Thanks all, it definitely seems like an improvement.
--
Grzegorz
-- 
View this message in context: http://www.nabble.com/More-idiomatic-use-of-strictness-tp18379800p18403657.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list