[Haskell-cafe] Re: monad subexpressions
rahn at ira.uka.de
Fri Aug 3 07:32:57 EDT 2007
> rewrite *p++=*q++ in haskell?
I always reject such codes when produced by my students. It is just
unreadable. I even do not understand what you are trying to achieve.
However, gcc seems it to compile to something like
*p = *(p+1) ; *q = *(q+1)
But for what is the '=' good for?
So rewriting it in Haskell (of any size) is a good idea to actually
understand the code. Please, could you do it.
-- Mirko Rahn -- Tel +49-721 608 7504 --
--- http://liinwww.ira.uka.de/~rahn/ ---
More information about the Haskell-Cafe