On Sat, 2007-08-11 at 21:10 +0200, Henning Thielemann wrote:
> Btw. is there any application, where 'quot' and 'rem' are needed? All
> occurrences of 'quot' and 'rem' I found in code so far were actually wrong
> and should have been 'div' and 'mod'.
> 
> http://www.haskell.org/haskellwiki/Things_to_avoid#Forget_about_quot_and_rem

quotRem is faster than divMod, and my understanding is that even divMod
is arguably broken.

http://www.cs.uu.nl/~daan/download/papers/divmodnote-letter.pdf

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to