[Haskell-cafe] Re: monad subexpressions
Bulat Ziganshin
bulat.ziganshin at gmail.com
Fri Aug 3 07:58:04 EDT 2007
Hello Mirko,
Friday, August 3, 2007, 3:32:57 PM, you wrote:
>> rewrite *p++=*q++ in haskell?
> I always reject such codes when produced by my students. It is just
> unreadable.
it's one of C idioms. probably, you don't have enough C experience to
understand it :)
> So rewriting it in Haskell (of any size) is a good idea to actually
> understand the code. Please, could you do it.
result is that currently C code rewritten in Haskell becomes much
larger and less readable. if you think that readIORef is more
readable than *, and x<-readioref v; writeioref v (x+1) is more
readable than ++ - it's up to you :)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list